函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\dma-mapping.h Create Date:2022-07-27 06:51:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dma_unmap_resource

函数原型:static inline void dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs)

返回类型:void

参数:

类型参数名称
struct device *dev
dma_addr_taddr
size_tsize
enum dma_data_directiondir
unsigned longattrs
368  ops等于get_dma_ops(dev)
370  BUG_ON(!valid_dma_direction(dir))
371  如果非dma_is_direct(ops)且unmap_resourceunmap_resource(dev, addr, size, dir, attrs)
373  debug_dma_unmap_resource(dev, addr, size, dir)