1SND_DMA_ALLOC_PAGES_(9) Management of Cards and Device SND_DMA_ALLOC_PAGES_(9)
2
3
4

NAME

6       snd_dma_alloc_pages_fallback - allocate the buffer area according to
7       the given type with fallback
8

SYNOPSIS

10       int snd_dma_alloc_pages_fallback(int type, struct device * device,
11                                        size_t size,
12                                        struct snd_dma_buffer * dmab);
13

ARGUMENTS

15       type
16           the DMA buffer type
17
18       device
19           the device pointer
20
21       size
22           the buffer size to allocate
23
24       dmab
25           buffer allocation record to store the allocated data
26

DESCRIPTION

28       Calls the memory-allocator function for the corresponding buffer type.
29       When no space is left, this function reduces the size and tries to
30       allocate again. The size actually allocated is stored in res_size
31       argument.
32

RETURN

34       Zero if the buffer with the given size is allocated successfully,
35       otherwise a negative value on error.
36
38Kernel Hackers Manual 3.10         June 2019           SND_DMA_ALLOC_PAGES_(9)
Impressum