函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Fallback for dma_map_sg in case of overflow

函数原型:static int dma_map_sg_nonforce(struct device *dev, struct scatterlist *sg, int nents, int dir)

返回类型:int

参数:

类型参数名称
struct device *dev
struct scatterlist *sg
intnents
intdir
304  addr等于返回SG物理地址入口
306  如果nonforced_iommu(dev, addr, length)则
307  addr等于Map a single continuous physical area into the IOMMU.* Caller needs to check if the iommu is needed and flush.
308  如果addr恒等于DMA_MAPPING_ERROR
311  nents等于0
312  dma_length等于0
313  退出
316  dma_address等于addr
317  dma_length等于length
319  Use global flush state to avoid races with multiple flushers.
321  返回:nents
调用者
名称描述
gart_map_sgDMA map all entries in a scatterlist.* Merge chunks that have page aligned sizes into a continuous mapping.