.TH "pci_pool_create" 9 "pci_pool_create" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME pci_pool_create \- Creates a pool of pci consistent memory blocks, for dma. .SH SYNOPSIS .B "struct pci_pool *" pci_pool_create .BI "(const char *" name "," .BI "struct pci_dev *" pdev "," .BI "size_t " size "," .BI "size_t " align "," .BI "size_t " allocation "," .BI "int " flags ");" .SH ARGUMENTS .IP "name" 12 name of pool, for diagnostics .IP "pdev" 12 pci device that will be doing the DMA .IP "size" 12 size of the blocks in this pool. .IP "align" 12 alignment requirement for blocks; must be a power of two .IP "allocation" 12 returned blocks won't cross this boundary (or zero) .IP "flags" 12 SLAB_* flags (not all are supported). .SH "DESCRIPTION" Returns a pci allocation pool with the requested characteristics, or null if one can't be created. Given one of these pools, \fBpci_pool_alloc\fP may be used to allocate memory. Such memory will all have "consistent" DMA mappings, accessible by the device and its driver without using cache flushing primitives. The actual size of blocks allocated may be larger than requested because of alignment. If allocation is nonzero, objects returned from \fBpci_pool_alloc\fP won't cross that size boundary. This is useful for devices which have addressing restrictions on individual DMA transfers, such as not crossing boundaries of 4KBytes.