函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:latency Qos params changed, update period_us and all the dependent params

函数原型:static void ioc_refresh_period_us(struct ioc *ioc)

返回类型:void

参数:

类型参数名称
struct ioc *ioc
686  lockdep_assert_held( & lock)
689  如果qos[QOS_RLAT]大于等于qos[QOS_WLAT]则
690  ppm等于qos[QOS_RPPM]
691  lat等于qos[QOS_RLAT]
692  否则
693  ppm等于qos[QOS_WPPM]
694  lat等于qos[QOS_WLAT]
705  如果ppmmulti等于max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, (MILLION - ppm) / 50000, 2)
707  否则multi等于2
709  period_us等于multilat
710  period_us等于clamp_t - return a value clamped to a given range using a given type*@type: the type of variable to use*@val: current value*@lo: minimum allowable value*@hi: maximum allowable value* This macro does no typechecking and uses temporary variables of type(u32, period_us, MIN_PERIOD, MAX_PERIOD)
713  period_us等于period_us
714  margin_us等于period_usMARGIN_PCT除100
715  inuse_margin_vtime等于DIV64_U64_ROUND_UP(period_us * VTIME_PER_USEC * INUSE_MARGIN_PCT, 100)
调用者
名称描述
ioc_refresh_params