.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SND_DMA_ALLOC_PAGES_FALLBACK" "9" "09 October 2005" "" ""
.SH NAME
snd_dma_alloc_pages_fallback \- allocate the buffer area according to the given type with fallback
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_dma_alloc_pages_fallback (int \fItype\fB, struct device * \fIdevice\fB, size_t \fIsize\fB, struct snd_dma_buffer * \fIdmab\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItype\fB\fR
the DMA buffer type
.TP
\fB\fIdevice\fB\fR
the device pointer
.TP
\fB\fIsize\fB\fR
the buffer size to allocate
.TP
\fB\fIdmab\fB\fR
buffer allocation record to store the allocated data
.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.
.PP
Returns zero if the buffer with the given size is allocated successfuly,
other a negative value at error.