Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__sbitmap_get_word

Proto:static int __sbitmap_get_word(unsigned long *word, unsigned long depth, unsigned int hint, bool wrap)

Type:int

Parameter:

TypeParameterName
unsigned long *word
unsigned longdepth
unsigned inthint
boolwrap
110  orig_hint = hint
113  When 1 cycle
114  nr = Find the next zero bit in a memory region.
121  If orig_hint && hint && wrap Then
122  hint = orig_hint = 0
123  Continue
125  Return -1
128  If Not st_and_set_bit_lock - Set a bit and return its old value, for lock*@nr: Bit to set*@addr: Address to count from* This operation is atomic and provides acquire barrier semantics if* the returned value is 0.* It can be used to implement bit locks. Then Break
131  hint = nr + 1
132  If hint >= depth - 1 Then hint = 0
136  Return nr
Caller
NameDescribe
sbitmap_find_bit_in_index
sbitmap_get_shallow