1SND_PCM_LIB_PREALLOC(9) PCM API SND_PCM_LIB_PREALLOC(9)
2
3
4
6 snd_pcm_lib_preallocate_pages_for_all - pre-allocation for continuous
7 memory type (all substreams)
8
10 int snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm * pcm,
11 int type, void * data,
12 size_t size, size_t max);
13
15 pcm
16 the pcm instance
17
18 type
19 DMA type (SNDRV_DMA_TYPE_*)
20
21 data
22 DMA type dependent data
23
24 size
25 the requested pre-allocation size in bytes
26
27 max
28 the max. allowed pre-allocation size
29
31 Do pre-allocation to all substreams of the given pcm for the specified
32 DMA type.
33
35 Zero if successful, or a negative error code on failure.
36
38Kernel Hackers Manual 3.10 June 2019 SND_PCM_LIB_PREALLOC(9)