Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\scatterlist.h Create Date:2022-07-28 05:46:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sg_phys - Return physical address of an sg entry*@sg: SG entry* Description:* This calls page_to_phys() on the page in this sg entry, and adds the* sg offset. The caller must know that it is legal to call page_to_phys()* on the sg page.

Proto:static inline dma_addr_t sg_phys(struct scatterlist *sg)

Type:dma_addr_t

Parameter:

TypeParameterName
struct scatterlist *sg
224  Return Change "struct page" to physical address.(sg_page(sg)) + offset
Caller
NameDescribe
dma_map_sg_nonforceFallback for dma_map_sg in case of overflow
gart_map_sgDMA map all entries in a scatterlist.* Merge chunks that have page aligned sizes into a continuous mapping.