函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iommu_is_span_boundary

函数原型:static inline int iommu_is_span_boundary(unsigned int index, unsigned int nr, unsigned long shift, unsigned long boundary_size)

返回类型:int

参数:

类型参数名称
unsigned intindex
unsigned intnr
unsigned longshift
unsigned longboundary_size
21  BUG_ON(!s_power_of_2() - check if a value is a power of two*@n: the value to check* Determine whether some value is a power of two, where zero is* *not* considered a power of two.* Return: true if @n is a power of 2, otherwise false.)
23  shift等于shiftindex按位与boundary_size减1
24  返回:shiftnr大于boundary_size
调用者
名称描述
iommu_area_alloc
swiotlb_tbl_map_single