Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iommu_area_alloc

Proto:unsigned long iommu_area_alloc(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long shift, unsigned long boundary_size, unsigned long align_mask)

Type:unsigned long

Parameter:

TypeParameterName
unsigned long *map
unsigned longsize
unsigned longstart
unsigned intnr
unsigned longshift
unsigned longboundary_size
unsigned longalign_mask
17  size -= 1
18  again :
19  index = map_find_next_zero_area - find a contiguous aligned zero area*@map: The address to base the search on*@size: The bitmap size in bits*@start: The bitnumber to start searching at*@nr: The number of zeroed bits we're looking for*@align_mask: Alignment mask
20  If index < size Then
23  Go to again
25  bitmap_set(map, index, nr)
26  Return index
28  Return -1
Caller
NameDescribe
alloc_iommu