函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_maps_sg_attrs returns 0 on error and > 0 on success.* It should never return a value < 0.

函数原型:static inline int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs)

返回类型:int

参数:

类型参数名称
struct device *dev
struct scatterlist *sg
intnents
enum dma_data_directiondir
unsigned longattrs
312  ops等于get_dma_ops(dev)
315  BUG_ON(!valid_dma_direction(dir))
316  如果dma_is_direct(ops)则ents等于dma_direct_map_sg(dev, sg, nents, dir, attrs)
318  否则ents等于map_sg(dev, sg, nents, dir, attrs)
320  BUG_ON(ents < 0)
321  debug_dma_map_sg(dev, sg, nents, ents, dir)
323  返回:ents
调用者
名称描述
ib_dma_map_sg_attrs