函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\mapping.c Create Date:2022-07-27 11:32:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dma_mmap_attrs - map a coherent DMA allocation into user space*@dev: valid struct device pointer, or NULL for ISA and EISA-like devices*@vma: vm_area_struct describing requested user mapping*@cpu_addr: kernel CPU-view address returned from

函数原型:int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs)

返回类型:int

参数:

类型参数名称
struct device *dev
struct vm_area_struct *vma
void *cpu_addr
dma_addr_tdma_addr
size_tsize
unsigned longattrs
232  ops等于get_dma_ops(dev)
234  如果dma_is_direct(ops)则返回:dma_direct_mmap(dev, vma, cpu_addr, dma_addr, size, attrs)
237  如果非mmap则返回:负ENXIO
239  返回:mmap(dev, vma, cpu_addr, dma_addr, size, attrs)
调用者
名称描述
dma_mmap_wc