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

Name:dma_map_single_attrs

Proto:static inline dma_addr_t dma_map_single_attrs(struct device *dev, void *ptr, size_t size, enum dma_data_direction dir, unsigned long attrs)

Type:dma_addr_t

Parameter:

TypeParameterName
struct device *dev
void *ptr
size_tsize
enum dma_data_directiondir
unsigned longattrs
584  If dev_WARN_ONCE(dev, Determine if an address is within the vmalloc range* On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there* is no special casing required., "rejecting DMA map of vmalloc memory\n") Then Return DMA_MAPPING_ERROR
587  debug_dma_map_single(dev, ptr, size)
588  Return dma_map_page_attrs(dev, virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(ptr), offset_in_page(ptr), size, dir, attrs)