函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:See if we have deferred clears that we can batch move

函数原型:static inline bool sbitmap_deferred_clear(struct sbitmap *sb, int index)

返回类型:bool

参数:

类型参数名称
struct sbitmap *sb
intindex
18  bool ret = false
21  spin_lock_irqsave( & @swap_lock: Held while swapping word <-> cleared, flags)
23  如果非@cleared: word holding cleared bits则转到:out_unlock
29  mask等于xchg( & @cleared: word holding cleared bits, 0)
34  循环
35  val等于@word: word holding free bits
36 cmpxchg( & @word: word holding free bits, val, val & ~mask)不等于val循环
38  ret = true
39  out_unlock :
40  spin_unlock_irqrestore( & @swap_lock: Held while swapping word <-> cleared, flags)
41  返回:ret
调用者
名称描述
sbitmap_resize
sbitmap_find_bit_in_index
sbitmap_get_shallow