pci_pool_alloc

Name

pci_pool_alloc --  get a block of consistent memory

Synopsis

void * pci_pool_alloc (struct pci_pool * pool, int mem_flags, dma_addr_t * handle);

Arguments

pool

pci pool that will produce the block

mem_flags

SLAB_KERNEL or SLAB_ATOMIC

handle

pointer to dma address of block

Description

This returns the kernel virtual address of a currently unused block, and reports its dma address through the handle. If such a memory block can't be allocated, null is returned.