1SND_DMA_ALLOC_PAGES(9) Management of Cards and Device SND_DMA_ALLOC_PAGES(9)
2
3
4
6 snd_dma_alloc_pages - allocate the buffer area according to the given
7 type
8
10 int snd_dma_alloc_pages(int type, struct device * device, size_t size,
11 struct snd_dma_buffer * dmab);
12
14 type
15 the DMA buffer type
16
17 device
18 the device pointer
19
20 size
21 the buffer size to allocate
22
23 dmab
24 buffer allocation record to store the allocated data
25
27 Calls the memory-allocator function for the corresponding buffer type.
28
29 Returns zero if the buffer with the given size is allocated
30 successfuly, other a negative value at error.
31
33Kernel Hackers Manual 2.6. November 2011 SND_DMA_ALLOC_PAGES(9)