Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check if an allocation needs to be marked uncached to be coherent.

Proto:static __always_inline bool dma_alloc_need_uncached(struct device *dev, unsigned long attrs)

Type:bool

Parameter:

TypeParameterName
struct device *dev
unsigned longattrs
30  If dev_is_dma_coherent(dev) Then Return false
32  If attrs & DMA_ATTR_NO_KERNEL_MAPPING: Lets the platform to avoid creating a kernel* virtual mapping for the allocated buffer. Then Return false
34  If 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. Then Return false
37  Return true
Caller
NameDescribe
dma_direct_alloc_pages
dma_direct_alloc
dma_direct_free