函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_direct_supported

函数原型:int dma_direct_supported(struct device *dev, u64 mask)

返回类型:int

参数:

类型参数名称
struct device *dev
u64mask
477  min_mask等于duplicated to the one in bootmem.h 减1左移PAGE_SHIFT determines the page size
485  如果mask大于等于DMA_BIT_MASK(32)则返回:1
493  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_ZONE_DMA)则min_mask等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u64, min_mask, DMA_BIT_MASK(Most architectures use ZONE_DMA for the first 16 Megabytes, but some use it* it for entirely different regions. In that case the arch code needs to* override the variable below for dma-direct to work properly.))
495  返回:mask大于等于__phys_to_dma(dev, min_mask)
调用者
名称描述
dma_supported