Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:08:15
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_poll_stats_bkt

Proto:static int blk_mq_poll_stats_bkt(const struct request *rq)

Type:int

Parameter:

TypeParameterName
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  If bucket < 0 Then Return -1
57  Else if bucket >= Must be consistent with blk_mq_poll_stats_bkt() Then Return ddir + Must be consistent with blk_mq_poll_stats_bkt() - 2
60  Return bucket
Caller
NameDescribe
blk_mq_poll_nsecs