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:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dma_map_page_attrs

Proto:static inline dma_addr_t dma_map_page_attrs(struct device *dev, struct page *page, size_t offset, size_t size, enum dma_data_direction dir, unsigned long attrs)

Type:dma_addr_t

Parameter:

TypeParameterName
struct device *dev
struct page *page
size_toffset
size_tsize
enum dma_data_directiondir
unsigned longattrs
278  ops = get_dma_ops(dev)
281  BUG_ON(!valid_dma_direction(dir))
282  If dma_is_direct(ops) Then addr = dma_direct_map_page(dev, page, offset, size, dir, attrs)
284  Else addr = map_page(dev, page, offset, size, dir, attrs)
286  debug_dma_map_page(dev, page, offset, size, dir, addr)
288  Return addr