Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:See if we have deferred clears that we can batch move

Proto:static inline bool sbitmap_deferred_clear(struct sbitmap *sb, int index)

Type:bool

Parameter:

TypeParameterName
struct sbitmap *sb
intindex
18  bool ret = false
21  spin_lock_irqsave( & @swap_lock: Held while swapping word <-> cleared, flags)
23  If Not @cleared: word holding cleared bits Then Go to out_unlock
29  mask = xchg( & @cleared: word holding cleared bits, 0)
34  Do
35  val = @word: word holding free bits
36  When cmpxchg( & @word: word holding free bits, val, val & ~mask) != val cycle
38  ret = true
39  out_unlock :
40  spin_unlock_irqrestore( & @swap_lock: Held while swapping word <-> cleared, flags)
41  Return ret
Caller
NameDescribe
sbitmap_resize
sbitmap_find_bit_in_index
sbitmap_get_shallow