函数逻辑报告

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:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Map a single area into the IOMMU

函数原型:static dma_addr_t gart_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction dir, unsigned long attrs)

返回类型:dma_addr_t

参数:

类型参数名称
struct device *dev
struct page *page
unsigned longoffset
size_tsize
enum dma_data_directiondir
unsigned longattrs
234  paddr等于Change "struct page" to physical address.(page)加offset
236  如果非need_iommu(dev, paddr, size)则返回:paddr
239  bus等于Map a single continuous physical area into the IOMMU.* Caller needs to check if the iommu is needed and flush.
240  Use global flush state to avoid races with multiple flushers.
242  返回:bus