函数逻辑报告 |
Source Code:block\blk-throttle.c |
Create Date:2022-07-27 19:19:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:tg_prfill_limit
函数原型:static u64 tg_prfill_limit(struct seq_file *sf, struct blkg_policy_data *pd, int off)
返回类型:u64
参数:
类型 | 参数 | 名称 |
---|---|---|
struct seq_file * | sf | |
struct blkg_policy_data * | pd | |
int | off |
1564 | char bufs[4][21] = {"max", "max", "max", "max"} |
1567 | idle_time[26]等于"" |
1568 | latency_time[26]等于"" |
1570 | 如果非dname则返回:0 |
1576 | 否则 |
1581 | 如果 user configured bps limits [generic data direction definitions ][off]恒等于bps_dft且 user configured bps limits [WRITE][off]恒等于bps_dft且 user configured IOPS limits [generic data direction definitions ][off]恒等于iops_dft且 user configured IOPS limits [WRITE][off]恒等于iops_dft且off不等于LIMIT_LOW或 us 恒等于DFL_IDLE_THRESHOLD且 us 恒等于DFL_LATENCY_TARGET的值则返回:0 |
1609 | 如果 us 恒等于ULONG_MAX则strcpy(latency_time, " latency=max") |
1616 | seq_printf(sf, "%s rbps=%s wbps=%s riops=%s wiops=%s%s%s\n", dname, bufs[0], bufs[1], bufs[2], bufs[3], idle_time, latency_time) |
1619 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |