函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\dma-mapping.h Create Date:2022-07-27 06:51:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dma_map_single_attrs

函数原型: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)

返回类型:dma_addr_t

参数:

类型参数名称
struct device *dev
void *ptr
size_tsize
enum dma_data_directiondir
unsigned longattrs
584  如果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")则返回:DMA_MAPPING_ERROR
587  debug_dma_map_single(dev, ptr, size)
588  返回: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)