Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dma_unmap_sg_attrs

Proto:static inline void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs)

Type:void

Parameter:

TypeParameterName
struct device *dev
struct scatterlist *sg
intnents
enum dma_data_directiondir
unsigned longattrs
330  ops = get_dma_ops(dev)
332  BUG_ON(!valid_dma_direction(dir))
333  debug_dma_unmap_sg(dev, sg, nents, dir)
334  If dma_is_direct(ops) Then dma_direct_unmap_sg(dev, sg, nents, dir, attrs)
336  Else if unmap_sg Then unmap_sg(dev, sg, nents, dir, attrs)