Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\virt.c Create Date:2022-07-28 10:34:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dma_virt_map_sg

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

Type:int

Parameter:

TypeParameterName
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_virt - Return virtual address of an sg entry*@sg: SG entry* Description:* This calls page_address() on the page in this sg entry, and adds the* sg offset. The caller must know that the sg page has a valid virtual* mapping.
47  sg_dma_len(sg) = length
50  Return nents