'\" t .\" Title: snd_pcm_lib_malloc_pages .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: PCM API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_PCM_LIB_MALLOC_P" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "PCM API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_pcm_lib_malloc_pages \- allocate the DMA buffer .SH "SYNOPSIS" .HP \w'int\ snd_pcm_lib_malloc_pages('u .BI "int snd_pcm_lib_malloc_pages(struct\ snd_pcm_substream\ *\ " "substream" ", size_t\ " "size" ");" .SH "ARGUMENTS" .PP \fIsubstream\fR .RS 4 the substream to allocate the DMA buffer to .RE .PP \fIsize\fR .RS 4 the requested buffer size in bytes .RE .SH "DESCRIPTION" .PP Allocates the DMA buffer on the BUS type given earlier to \fBsnd_pcm_lib_preallocate_xxx_pages\fR\&. .SH "RETURN" .PP 1 if the buffer is changed, 0 if not changed, or a negative code on failure\&. .SH "COPYRIGHT" .br