Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\coherent.c Create Date:2022-07-28 10:33:43
Last Modify:2020-03-17 14:54:14 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dev_get_coherent_memory

Proto:static inline struct dma_coherent_mem *dev_get_coherent_memory(struct device *dev)

Type:struct dma_coherent_mem

Parameter:

TypeParameterName
struct device *dev
26  If dev && dma_mem Then Return dma_mem
28  Return NULL
Caller
NameDescribe
dma_alloc_from_dev_coherentdma_alloc_from_dev_coherent() - allocate memory from device coherent pool*@dev: device from which we allocate memory*@size: size of requested memory area*@dma_handle: This will be filled with the correct dma handle*@ret: This pointer will be filled with
dma_release_from_dev_coherentdma_release_from_dev_coherent() - free memory to device coherent memory pool*@dev: device from which the memory was allocated*@order: the order of pages allocated*@vaddr: virtual address of allocated pages* This checks whether the memory was allocated
dma_mmap_from_dev_coherentdma_mmap_from_dev_coherent() - mmap memory from the device coherent pool*@dev: device from which the memory was allocated*@vma: vm_area for the userspace memory*@vaddr: cpu address returned by dma_alloc_from_dev_coherent*@size: size of the memory buffer