Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sbitmap_get

Proto:int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin)

Type:int

Parameter:

TypeParameterName
struct sbitmap *sb
unsigned intalloc_hint
boolround_robin
160  nr = -1
162  index = SB_NR_TO_INDEX(sb, alloc_hint)
169  If round_robin Then alloc_hint = SB_NR_TO_BIT(sb, alloc_hint)
171  Else alloc_hint = 0
174  When i < @map_nr: Number of words (cachelines) being used for the bitmap. cycle
175  nr = sbitmap_find_bit_in_index(sb, index, alloc_hint, round_robin)
177  If nr != -1 Then
179  Break
183  alloc_hint = 0
184  If ++index >= @map_nr: Number of words (cachelines) being used for the bitmap. Then index = 0
188  Return nr
Caller
NameDescribe
__sbitmap_queue_get