函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\coherent.c Create Date:2022-07-27 11:33:45
Last Modify:2020-03-17 14:54:14 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int dma_mmap_from_dev_coherent(struct device *dev, struct vm_area_struct *vma, void *vaddr, size_t size, int *ret)

返回类型:int

参数:

类型参数名称
struct device *dev
struct vm_area_struct *vma
void *vaddr
size_tsize
int *ret
277  mem等于dev_get_coherent_memory(dev)
279  返回:__dma_mmap_from_coherent(mem, vma, vaddr, size, ret)
调用者
名称描述
dma_common_mmapCreate userspace mapping for the DMA-coherent memory.
dma_direct_mmap