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
30 Zero if the buffer with the given size is allocated successfully,
31 otherwise a negative value on error.
32
34Kernel Hackers Manual 3.10 June 2019 SND_DMA_ALLOC_PAGES(9)