Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\mapping.c Create Date:2022-07-28 10:32:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto: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)

Type:int

Parameter:

TypeParameterName
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  If dma_is_direct(ops) Then Return dma_direct_mmap(dev, vma, cpu_addr, dma_addr, size, attrs)
237  If Not mmap Then Return -ENXIO
239  Return mmap(dev, vma, cpu_addr, dma_addr, size, attrs)
Caller
NameDescribe
dma_mmap_wc