1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>PCM Memory Management</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The ALSA Driver API"><link rel="up" href="ch02.html" title="Chapter 2. PCM API"><link rel="prev" href="API-snd-pcm-rate-mask-intersect.html" title="snd_pcm_rate_mask_intersect"><link rel="next" href="API-snd-pcm-lib-preallocate-free-for-all.html" title="snd_pcm_lib_preallocate_free_for_all"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">PCM Memory Management</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-snd-pcm-rate-mask-intersect.html">Prev</a> </td><th width="60%" align="center">Chapter 2. PCM API</th><td width="20%" align="right"> <a accesskey="n" href="API-snd-pcm-lib-preallocate-free-for-all.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1094277908"></a>PCM Memory Management</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-snd-pcm-lib-preallocate-free-for-all.html"><span class="phrase">snd_pcm_lib_preallocate_free_for_all</span></a></span><span class="refpurpose"> — 2 release all pre-allocated buffers on the pcm 3 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-lib-preallocate-pages.html"><span class="phrase">snd_pcm_lib_preallocate_pages</span></a></span><span class="refpurpose"> — 4 pre-allocation for the given DMA type 5 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-lib-preallocate-pages-for-all.html"><span class="phrase">snd_pcm_lib_preallocate_pages_for_all</span></a></span><span class="refpurpose"> — 6 pre-allocation for continuous memory type (all substreams) 7 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-sgbuf-ops-page.html"><span class="phrase">snd_pcm_sgbuf_ops_page</span></a></span><span class="refpurpose"> — 8 get the page struct at the given offset 9 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-lib-malloc-pages.html"><span class="phrase">snd_pcm_lib_malloc_pages</span></a></span><span class="refpurpose"> — 10 allocate the DMA buffer 11 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-lib-free-pages.html"><span class="phrase">snd_pcm_lib_free_pages</span></a></span><span class="refpurpose"> — 12 release the allocated DMA buffer. 13 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-lib-free-vmalloc-buffer.html"><span class="phrase">snd_pcm_lib_free_vmalloc_buffer</span></a></span><span class="refpurpose"> — 14 free vmalloc buffer 15 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-lib-get-vmalloc-page.html"><span class="phrase">snd_pcm_lib_get_vmalloc_page</span></a></span><span class="refpurpose"> — 16 map vmalloc buffer offset to page struct 17 </span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-snd-pcm-rate-mask-intersect.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-snd-pcm-lib-preallocate-free-for-all.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">snd_pcm_rate_mask_intersect</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">snd_pcm_lib_preallocate_free_for_all</span></td></tr></table></div></body></html> 18