snd_dma_get_reserved_buf(9)

snd_dma_get_reserved_buf9

Get the reserved buffer for the given device

Usage

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

Overview

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.

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.