函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_virt_map_sg

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

返回类型:int

参数:

类型参数名称
struct device *dev
struct scatterlist *sgl
intnents
enum dma_data_directiondir
unsigned longattrs
45  BUG_ON(!sg_page(sg))
46  These macros should be used after a dma_map_sg call has been done* to get bus addresses of each of the SG entries and their lengths(sg)等于 返回SG虚拟地址入口
47  sg_dma_len(sg)等于length
50  返回:nents