1DMA_RELEASE_FROM_COH(9) Device drivers infrastructure DMA_RELEASE_FROM_COH(9)
2
3
4
6 dma_release_from_coherent - try to free the memory allocated from
7 per-device coherent memory pool
8
10 int dma_release_from_coherent(struct device * dev, int order,
11 void * vaddr);
12
14 dev
15 device from which the memory was allocated
16
17 order
18 the order of pages allocated
19
20 vaddr
21 virtual address of allocated pages
22
24 This checks whether the memory was allocated from the per-device
25 coherent memory pool and if so, releases that memory.
26
27 Returns 1 if we correctly released the memory, or 0 if
28 dma_release_coherent should proceed with releasing memory from generic
29 pools.
30
32Kernel Hackers Manual 3.10 June 2019 DMA_RELEASE_FROM_COH(9)