1DMAM_ALLOC_COHERENT(9)   Device drivers infrastructure  DMAM_ALLOC_COHERENT(9)
2
3
4

NAME

6       dmam_alloc_coherent - Managed dma_alloc_coherent
7

SYNOPSIS

9       void * dmam_alloc_coherent(struct device * dev, size_t size,
10                                  dma_addr_t * dma_handle, gfp_t gfp);
11

ARGUMENTS

13       dev
14           Device to allocate coherent memory for
15
16       size
17           Size of allocation
18
19       dma_handle
20           Out argument for allocated DMA handle
21
22       gfp
23           Allocation flags
24

DESCRIPTION

26       Managed dma_alloc_coherent. Memory allocated using this function will
27       be automatically released on driver detach.
28

RETURNS

30       Pointer to allocated memory on success, NULL on failure.
31
33Kernel Hackers Manual 3.10         June 2019            DMAM_ALLOC_COHERENT(9)
Impressum