函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sbitmap_get

函数原型:int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin)

返回类型:int

参数:

类型参数名称
struct sbitmap *sb
unsigned intalloc_hint
boolround_robin
160  nr等于负1
162  index等于SB_NR_TO_INDEX(sb, alloc_hint)
169  如果round_robinalloc_hint等于SB_NR_TO_BIT(sb, alloc_hint)
171  否则alloc_hint等于0
174 i小于@map_nr: Number of words (cachelines) being used for the bitmap.循环
175  nr等于sbitmap_find_bit_in_index(sb, index, alloc_hint, round_robin)
177  如果nr不等于负1则
179  退出
183  alloc_hint等于0
184  如果index先自加大于等于@map_nr: Number of words (cachelines) being used for the bitmap.index等于0
188  返回:nr
调用者
名称描述
__sbitmap_queue_get