函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bfq_reset_rate_computation

函数原型:static void bfq_reset_rate_computation(struct bfq_data *bfqd, struct request *rq)

返回类型:void

参数:

类型参数名称
struct bfq_data *bfqd
struct request *rq
3022  如果(rq != NULL)则
3023  time of last rq dispatch in current observation interval (ns) 等于 time of first rq dispatch in current observation interval (ns) 等于ktime_get_ns()
3024  number of samples in current observation interval 等于1
3025  num of samples of seq dispatches in current observation interval 等于0
3026  total num of sectors transferred in current observation interval 等于 max rq size seen during current observation interval (sectors) 等于blk_rq_sectors(rq)
3028  否则 number of samples in current observation interval 等于0
3031  bfq_log(bfqd, "reset_rate_computation at end, sample %u/%u tot_sects %llu", number of samples in current observation interval , num of samples of seq dispatches in current observation interval , total num of sectors transferred in current observation interval )
调用者
名称描述
bfq_update_rate_reset
bfq_update_peak_rateUpdate the read/write peak rate (the main quantity used for* auto-tuning, see update_thr_responsiveness_params())