函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__dma_mmap_from_coherent

函数原型:static int __dma_mmap_from_coherent(struct dma_coherent_mem *mem, struct vm_area_struct *vma, void *vaddr, size_t size, int *ret)

返回类型:int

参数:

类型参数名称
struct dma_coherent_mem *mem
struct vm_area_struct *vma
void *vaddr
size_tsize
int *ret
240  如果memvaddr大于等于virt_basevaddrsize小于等于virt_basesize左移PAGE_SHIFT determines the page size 位的值则
242  off等于Offset (within vm_file) in PAGE_SIZEunits
243  start等于vaddrvirt_base右移PAGE_SHIFT determines the page size
244  user_count等于vma_pages(vma)
245  count等于 align the pointer to the (next) page boundary (size)右移PAGE_SHIFT determines the page size
247  ret等于负ENXIO
248  如果off小于countuser_count小于等于countoff
249  pfn等于pfn_basestartoff
254  返回:1
256  返回:0
调用者
名称描述
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
dma_mmap_from_global_coherent