函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-iosched.c Create Date:2022-07-27 19:30:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bfq_wr_duration

函数原型:static unsigned int bfq_wr_duration(struct bfq_data *bfqd)

返回类型:unsigned int

参数:

类型参数名称
struct bfq_data *bfqd
972  如果 maximum duration of a weight-raising period (jiffies) 大于0则返回: maximum duration of a weight-raising period (jiffies)
975  dur等于* Cached value of the product ref_rate*ref_wr_duration, used * for computing the maximum duration of weight raising * automatically.
976  do_div() is NOT a C function(dur, * Current estimate of the device peak rate, measured in * [(sectors/usec) / 2^BFQ_RATE_SHIFT]. The left-shift by * BFQ_RATE_SHIFT is performed to increase precision in * fixed-point calculations.)
998  返回:clamp_val - return a value clamped to a given range using val's type*@val: current value*@lo: minimum allowable value*@hi: maximum allowable value* This macro does no typechecking and uses temporary variables of whatever* type the input argument @val is(dur, msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than, msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than)
调用者
名称描述
switch_back_to_interactive_wrswitch back from soft real-time to interactive weight raising
bfq_bfqq_resume_state
bfq_update_bfqq_wr_on_rq_arrival
bfq_add_request
bfq_bfqq_save_state
bfq_update_wr_data