other versions
- stretch 4.9.168-1
SND_DMA_ALLOC_PAGES(9) | Management of Cards and Device | SND_DMA_ALLOC_PAGES(9) |
NAME¶
snd_dma_alloc_pages - allocate the buffer area according to the given typeSYNOPSIS¶
int snd_dma_alloc_pages(int type, struct device * device, size_t size, struct snd_dma_buffer * dmab);
ARGUMENTS¶
typethe DMA buffer type
device
the device pointer
size
the buffer size to allocate
dmab
buffer allocation record to store the allocated
data
DESCRIPTION¶
Calls the memory-allocator function for the corresponding buffer type.RETURN¶
Zero if the buffer with the given size is allocated successfully, otherwise a negative value on error.COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |