.\" 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_MALLOC_PCI_PAGES_FALLBACK" "" "06 October 2005" "" ""
.SH NAME
snd_malloc_pci_pages_fallback \- allocate pages with the given size with fallback for PCI bus
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void * snd_malloc_pci_pages_fallback (struct pci_dev * \fIpci\fB, size_t \fIsize\fB, dma_addr_t * \fIdma_addr\fB, size_t * \fIres_size\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIpci\fB\fR
pci device pointer
.TP
\fB\fIsize\fB\fR
the requested size to allocate in bytes
.TP
\fB\fIdma_addr\fB\fR
the pointer to store the physical address of the buffer
.TP
\fB\fIres_size\fB\fR
the pointer to store the size of buffer actually allocated
.SH "DESCRIPTION"
.PP
Allocates the physically contiguous pages with the given request
size for PCI bus. 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 the pointer of the buffer, or NULL if no enoguh memory.