other versions
- jessie 3.16.56-1+deb8u1
DMAM_ALLOC_COHERENT(9) | Device drivers infrastructure | DMAM_ALLOC_COHERENT(9) |
NAME¶
dmam_alloc_coherent - Managed dma_alloc_coherentSYNOPSIS¶
void *
dmam_alloc_coherent(struct device * dev,
size_t size,
dma_addr_t * dma_handle,
gfp_t gfp);
ARGUMENTS¶
devDevice to allocate coherent memory for
size
Size of allocation
dma_handle
Out argument for allocated DMA handle
gfp
Allocation flags
DESCRIPTION¶
Managed dma_alloc_coherent. Memory allocated using this function will be automatically released on driver detach.RETURNS¶
Pointer to allocated memory on success, NULL on failure.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |