dmam_pool_create —
Managed dma_pool_create
struct dma_pool * dmam_pool_create ( | const char * name, |
| struct device * dev, | |
| size_t size, | |
| size_t align, | |
size_t allocation); |
const char * namename of pool, for diagnostics
struct device * devdevice that will be doing the DMA
size_t sizesize of the blocks in this pool.
size_t alignalignment requirement for blocks; must be a power of two
size_t allocationreturned blocks won't cross this boundary (or zero)
Managed dma_pool_create. DMA pool created with this function is
automatically destroyed on driver detach.