Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__sbitmap_weight

Proto:static unsigned int __sbitmap_weight(const struct sbitmap *sb, bool set)

Type:unsigned int

Parameter:

TypeParameterName
const struct sbitmap *sb
boolset
241  weight = 0
243  When i < @map_nr: Number of words (cachelines) being used for the bitmap. cycle
244  word = @map: Allocated bitmap.[i]
246  If set Then weight += bitmap_weight( & @word: word holding free bits, @depth: Number of bits being used in @word/@cleared)
248  Else weight += bitmap_weight( & @cleared: word holding cleared bits, @depth: Number of bits being used in @word/@cleared)
251  Return weight
Caller
NameDescribe
sbitmap_weight
sbitmap_cleared