.\" 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" "9" "09 October 2005" "" "" .SH NAME snd_dma_alloc_pages \- allocate the buffer area according to the given type .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int snd_dma_alloc_pages (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. .PP Returns zero if the buffer with the given size is allocated successfuly, other a negative value at error.