函数逻辑报告 |
Source Code:block\blk-throttle.c |
Create Date:2022-07-27 19:17:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:tg_bps_limit
函数原型:static uint64_t tg_bps_limit(struct throtl_grp *tg, int rw)
返回类型:uint64_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct throtl_grp * | tg | |
int | rw |
298 | blkg等于tg_to_blkg(tg) |
307 | 如果ret恒等于0且limit_index恒等于LIMIT_LOW则 |
309 | 如果非链表为空或 internally used IOPS limits [rw][limit_index]则返回:U64_MAX |
312 | 否则返回:MIN_THROTL_BPS |
323 | 返回:ret |
名称 | 描述 |
---|---|
tg_update_has_rules | Set has_rules[] if @tg or any of its parents have limits configured.* This doesn't require walking up to the top of the hierarchy as the* parent's has_rules[] is guaranteed to be correct. |
throtl_trim_slice | Trim the used slices and adjust slice start accordingly |
tg_with_in_bps_limit | |
tg_may_dispatch | Returns whether one can dispatch a bio or not. Also returns approx number* of jiffies to wait before this bio is with-in IO rate and can be dispatched |
tg_conf_updated | |
blk_throtl_bio |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |