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

NAME

6       dma_alloc_from_coherent - try to allocate memory from the per-device
7       coherent area
8

SYNOPSIS

10       int dma_alloc_from_coherent(struct device * dev, ssize_t size,
11                                   dma_addr_t * dma_handle, void ** ret);
12

ARGUMENTS

14       dev
15           device from which we allocate memory
16
17       size
18           size of requested memory area
19
20       dma_handle
21           This will be filled with the correct dma handle
22
23       ret
24           This pointer will be filled with the virtual address to allocated
25           area.
26

DESCRIPTION

28       This function should be only called from per-arch dma_alloc_coherent to
29       support allocation from per-device coherent memory pools.
30
31       Returns 0 if dma_alloc_coherent should continue with allocating from
32       generic memory areas, or !0 if dma_alloc_coherent should return ret.
33
35Kernel Hackers Manual 3.10         June 2019           DMA_ALLOC_FROM_COHER(9)
Impressum