函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__sbitmap_weight

函数原型:static unsigned int __sbitmap_weight(const struct sbitmap *sb, bool set)

返回类型:unsigned int

参数:

类型参数名称
const struct sbitmap *sb
boolset
241  weight等于0
243 i小于@map_nr: Number of words (cachelines) being used for the bitmap.循环
244  word等于@map: Allocated bitmap.[i]
246  如果setweight加等于bitmap_weight( & @word: word holding free bits, @depth: Number of bits being used in @word/@cleared)
248  否则weight加等于bitmap_weight( & @cleared: word holding cleared bits, @depth: Number of bits being used in @word/@cleared)
251  返回:weight
调用者
名称描述
sbitmap_weight
sbitmap_cleared