Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\iommu-helper.h Create Date:2022-07-28 07:11:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:iommu_is_span_boundary

Proto:static inline int iommu_is_span_boundary(unsigned int index, unsigned int nr, unsigned long shift, unsigned long boundary_size)

Type:int

Parameter:

TypeParameterName
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 = shift + index & boundary_size - 1
24  Return shift + nr > boundary_size
Caller
NameDescribe
iommu_area_alloc
swiotlb_tbl_map_single