函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iommu_area_alloc

函数原型: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)

返回类型:unsigned long

参数:

类型参数名称
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  如果index小于size
23  转到:again
25  bitmap_set(map, index, nr)
26  返回:index
28  返回:负1
调用者
名称描述
alloc_iommu