函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:throtl_tg_is_idle

函数原型:static bool throtl_tg_is_idle(struct throtl_grp *tg)

返回类型:bool

参数:

类型参数名称
struct throtl_grp *tg
1834  time等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, 5 s , 4 * us )
1835  ret等于 us 恒等于DFL_LATENCY_TARGET us 恒等于DFL_IDLE_THRESHOLDktime_get_ns()右移10位的值减 ns / 1024 大于time ns / 1024 大于 us us total bios bios exceeding latency threshold 乘5小于 total bios
1841  hrotl_log - log debug message via blktrace*@sq: the service_queue being reported*@fmt: printf format string*@args: printf args* The messages are prefixed with "throtl BLKG_NAME" if @sq belongs to a* throtl_grp; otherwise, just "throtl".( & this group's service queue , "avg_idle=%ld, idle_threshold=%ld, bad_bio=%d, total_bio=%d, is_idle=%d, scale=%d", ns / 1024 , us , bios exceeding latency threshold , total bios , ret, scale)
1845  返回:ret
调用者
名称描述
throtl_tg_can_upgrade
throtl_tg_can_downgrade