SND_MALLOC_PCI_PAGES_FALLBACK

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

snd_malloc_pci_pages_fallback - allocate pages with the given size with fallback for PCI bus  

SYNOPSIS

"SYNOPSIS"

void * snd_malloc_pci_pages_fallback (struct pci_dev * pci, size_t size, dma_addr_t * dma_addr, size_t * res_size);  

ARGUMENTS

pci
pci device pointer
size
the requested size to allocate in bytes
dma_addr
the pointer to store the physical address of the buffer
res_size
the pointer to store the size of buffer actually allocated
 

DESCRIPTION

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.

Returns the pointer of the buffer, or NULL if no enoguh memory.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 04:41:07 GMT, October 06, 2005