---
name: "snd_dma_get_reserved_buf"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_dma_get_reserved_buf"
---

# snd\_dma\_get\_reserved\_buf(9)

get the reserved buffer for the given device

## NAME

snd\_dma\_get\_reserved\_buf - get the reserved buffer for the given device

## SYNOPSIS

**size\_t snd\_dma\_get\_reserved\_buf(struct snd\_dma\_buffer \*** *dmab***, unsigned int** *id***);**

## ARGUMENTS

*dmab*

the buffer allocation record to store

*id*

the buffer id

## DESCRIPTION

Looks for the reserved-buffer list and re-uses if the same buffer is found in the list. When the buffer is found, it's removed from the free list.

Returns the size of buffer if the buffer is found, or zero if not found.

## COPYRIGHT
