函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_THRESHOLD或ktime_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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |