Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sbitmap_bitmap_show

Proto:void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m)

Type:void

Parameter:

TypeParameterName
struct sbitmap *sb
struct seq_file *m
288  byte = 0
289  byte_bits = 0
290  offset = 0
293  When i < @map_nr: Number of words (cachelines) being used for the bitmap. cycle
294  word = READ_ONCE(@word: word holding free bits)
295  word_bits = READ_ONCE(@depth: Number of bits being used in @word/@cleared)
297  When word_bits > 0 cycle
300  byte |= (word & BIT(bits) - 1 ) << byte_bits
301  byte_bits += bits
302  If byte_bits == 8 Then
303  emit_byte(m, offset, byte)
304  byte = 0
305  byte_bits = 0
306  offset++
308  word >>= bits
309  word_bits -= bits
312  If byte_bits Then
313  emit_byte(m, offset, byte)
314  offset++
316  If offset Then seq_putc(m, '\n')
Caller
NameDescribe
hctx_tags_bitmap_show
hctx_sched_tags_bitmap_show