'\" t .\" Title: snd_dma_alloc_pages_fallback .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Management of Cards and Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_DMA_ALLOC_PAGES_" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Management of Cards and Device" .\" ----------------------------------------------------------------- .\" * 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_dma_alloc_pages_fallback \- allocate the buffer area according to the given type with fallback .SH "SYNOPSIS" .HP \w'int\ snd_dma_alloc_pages_fallback('u .BI "int snd_dma_alloc_pages_fallback(int\ " "type" ", struct\ device\ *\ " "device" ", size_t\ " "size" ", struct\ snd_dma_buffer\ *\ " "dmab" ");" .SH "ARGUMENTS" .PP \fItype\fR .RS 4 the DMA buffer type .RE .PP \fIdevice\fR .RS 4 the device pointer .RE .PP \fIsize\fR .RS 4 the buffer size to allocate .RE .PP \fIdmab\fR .RS 4 buffer allocation record to store the allocated data .RE .SH "DESCRIPTION" .PP Calls the memory\-allocator function for the corresponding buffer type\&. When no space is left, this function reduces the size and tries to allocate again\&. The size actually allocated is stored in res_size argument\&. .SH "RETURN" .PP Zero if the buffer with the given size is allocated successfully, otherwise a negative value on error\&. .SH "COPYRIGHT" .br