'\" t .\" Title: snd_pcm_lib_preallocate_pages .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Sound Devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SND_PCM_LIB_PREALLOC" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Sound Devices" .\" ----------------------------------------------------------------- .\" * 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_preallocate_pages \- pre\-allocation for the given DMA type .SH "SYNOPSIS" .HP \w'int\ snd_pcm_lib_preallocate_pages('u .BI "int snd_pcm_lib_preallocate_pages(struct\ snd_pcm_substream\ *\ " "substream" ", int\ " "type" ", struct\ device\ *\ " "data" ", size_t\ " "size" ", size_t\ " "max" ");" .SH "ARGUMENTS" .PP \fIsubstream\fR .RS 4 the pcm substream instance .RE .PP \fItype\fR .RS 4 DMA type (SNDRV_DMA_TYPE_*) .RE .PP \fIdata\fR .RS 4 DMA type dependent data .RE .PP \fIsize\fR .RS 4 the requested pre\-allocation size in bytes .RE .PP \fImax\fR .RS 4 the max\&. allowed pre\-allocation size .RE .SH "DESCRIPTION" .PP Do pre\-allocation for the given DMA buffer type\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br