函数逻辑报告 |
Source Code:block\blk-throttle.c |
Create Date:2022-07-27 19:18:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:tg_with_in_iops_limit
函数原型:static bool tg_with_in_iops_limit(struct throtl_grp *tg, struct bio *bio, unsigned long *wait)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct throtl_grp * | tg | |
| struct bio * | bio | |
| unsigned long * | wait |
| 916 | tmp等于tg_iops_limit(tg, rw)乘jiffy_elapsed_rnd |
| 919 | 如果tmp大于UINT_MAX则io_allowed等于UINT_MAX |
| 921 | 否则io_allowed等于tmp |
| 924 | 如果 Number of bio's dispatched in current slice [rw]加1小于等于io_allowed则 |
| 933 | 如果wait则wait等于jiffy_wait |
| 935 | 返回:false |
| 名称 | 描述 |
|---|---|
| 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 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |