Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dma_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

Proto:int dma_mmap_from_dev_coherent(struct device *dev, struct vm_area_struct *vma, void *vaddr, size_t size, int *ret)

Type:int

Parameter:

TypeParameterName
struct device *dev
struct vm_area_struct *vma
void *vaddr
size_tsize
int *ret
277  mem = dev_get_coherent_memory(dev)
279  Return __dma_mmap_from_coherent(mem, vma, vaddr, size, ret)
Caller
NameDescribe
dma_common_mmapCreate userspace mapping for the DMA-coherent memory.
dma_direct_mmap