函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-27 18:43:36
Last Modify:2020-03-17 23:18:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_mq_poll_stats_bkt

函数原型:static int blk_mq_poll_stats_bkt(const struct request *rq)

返回类型:int

参数:

类型参数名称
const struct request *rq
50  ddir等于rq_data_dir(rq)
51  sectors等于blk_rq_stats_sectors(rq)
53  bucket等于ddir加2乘log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (sectors)
55  如果bucket小于0则返回:负1
57  否则如果bucket大于等于Must be consistent with blk_mq_poll_stats_bkt() 则返回:ddirMust be consistent with blk_mq_poll_stats_bkt() 减2
60  返回:bucket
调用者
名称描述
blk_mq_poll_nsecs