函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check if an allocation needs to be marked uncached to be coherent.

函数原型:static __always_inline bool dma_alloc_need_uncached(struct device *dev, unsigned long attrs)

返回类型:bool

参数:

类型参数名称
struct device *dev
unsigned longattrs
30  如果dev_is_dma_coherent(dev)则返回:false
32  如果attrs按位与DMA_ATTR_NO_KERNEL_MAPPING: Lets the platform to avoid creating a kernel* virtual mapping for the allocated buffer.则返回:false
34  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_DMA_NONCOHERENT_CACHE_SYNC)且attrs按位与DMA_ATTR_NON_CONSISTENT: Lets the platform to choose to return either* consistent or non-consistent memory as it sees fit.则返回:false
37  返回:true
调用者
名称描述
dma_direct_alloc_pages
dma_direct_alloc
dma_direct_free