函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ioc_refresh_params

函数原型:static bool ioc_refresh_params(struct ioc *ioc, bool force)

返回类型:bool

参数:

类型参数名称
struct ioc *ioc
boolforce
821  lockdep_assert_held( & lock)
823  idx等于ioc_autop_idx(ioc)
824  p等于autop[idx]
826  如果idx恒等于autop_idx且非force则返回:false
829  如果idx不等于autop_idxatomic64_set( & vtime_rate, VTIME_PER_USEC)
832  autop_idx等于idx
833  autop_too_fast_at等于0
834  autop_too_slow_at等于0
836  如果非user_qos_paramsmemcpy(qos, qos, qos的长度)
838  如果非user_cost_modelmemcpy(i_lcoefs, i_lcoefs, i_lcoefs的长度)
841  latency Qos params changed, update period_us and all the dependent params
842  ioc_refresh_lcoefs(ioc)
844  vrate_min等于DIV64_U64_ROUND_UP((u64)qos[QOS_MIN] * VTIME_PER_USEC, MILLION)
846  vrate_max等于div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof
849  返回:true
调用者
名称描述
ioc_timer_fn
ioc_rqos_queue_depth_changed
blk_iocost_init
ioc_qos_write
ioc_cost_model_write