函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sbitmap_resize

函数原型:void sbitmap_resize(struct sbitmap *sb, unsigned int depth)

返回类型:void

参数:

类型参数名称
struct sbitmap *sb
unsigned intdepth
91  bits_per_word等于1U左移@shift: log2(number of bits used per word)
94 i小于@map_nr: Number of words (cachelines) being used for the bitmap.循环See if we have deferred clears that we can batch move
97  @depth: Number of bits used in the whole bitmap.等于depth
98  @map_nr: Number of words (cachelines) being used for the bitmap.等于DIV_ROUND_UP(@depth: Number of bits used in the whole bitmap., bits_per_word)
100 i小于@map_nr: Number of words (cachelines) being used for the bitmap.循环
101  @depth: Number of bits being used in @word/@cleared等于两数取小(depth, bits_per_word)
102  depth减等于@depth: Number of bits being used in @word/@cleared
调用者
名称描述
sbitmap_queue_resize
blk_mq_map_swqueue