函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_direct_map_resource

函数原型:dma_addr_t dma_direct_map_resource(struct device *dev, phys_addr_t paddr, size_t size, enum dma_data_direction dir, unsigned long attrs)

返回类型:dma_addr_t

参数:

类型参数名称
struct device *dev
phys_addr_tpaddr
size_tsize
enum dma_data_directiondir
unsigned longattrs
411  dma_addr等于paddr
413  如果此条件成立可能性小(为编译器优化)(!dma_capable(dev, dma_addr, size, false))则
414  report_addr(dev, dma_addr, size)
415  返回:DMA_MAPPING_ERROR
418  返回:dma_addr