1SND_PCM_LIB_ALLOC_VM(9) Sound Devices SND_PCM_LIB_ALLOC_VM(9)
2
3
4
6 snd_pcm_lib_alloc_vmalloc_buffer - allocate virtual DMA buffer
7
9 int
10 snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream * substream,
11 size_t size);
12
14 substream
15 the substream to allocate the buffer to
16
17 size
18 the requested buffer size, in bytes
19
21 Allocates the PCM substream buffer using vmalloc, i.e., the memory is
22 contiguous in kernel virtual space, but not in physical memory. Use
23 this if the buffer is accessed by kernel code but not by device DMA.
24
26 1 if the buffer was changed, 0 if not changed, or a negative error
27 code.
28
30Kernel Hackers Manual 3.10 June 2019 SND_PCM_LIB_ALLOC_VM(9)