函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__dma_direct_optimal_gfp_mask

函数原型:static gfp_t __dma_direct_optimal_gfp_mask(struct device *dev, u64 dma_mask, u64 *phys_limit)

返回类型:gfp_t

参数:

类型参数名称
struct device *dev
u64dma_mask
u64 *phys_limit
62  dma_limit等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(dma_mask, upstream dma constraint )
64  如果force_dma_unencrypted(dev)则phys_limit等于__dma_to_phys(dev, dma_limit)
66  否则phys_limit等于dma_to_phys(dev, dma_limit)
77  如果phys_limit小于等于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.)则返回:GFP_DMA
79  如果phys_limit小于等于DMA_BIT_MASK(32)则返回:GFP_DMA32
81  返回:0
调用者
名称描述
__dma_direct_alloc_pages