Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_gart_64.c Create Date:2022-07-28 08:52:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Map a single area into the IOMMU

Proto: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)

Type:dma_addr_t

Parameter:

TypeParameterName
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  If Not need_iommu(dev, paddr, size) Then Return 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  Return bus