函数逻辑报告 |
Source Code:block\blk-throttle.c |
Create Date:2022-07-27 19:18:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:tg_with_in_bps_limit
函数原型:static bool tg_with_in_bps_limit(struct throtl_grp *tg, struct bio *bio, unsigned long *wait)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct throtl_grp * | tg | |
struct bio * | bio | |
unsigned long * | wait |
944 | bio_size等于throtl_bio_data_size(bio) |
954 | tmp等于tg_bps_limit(tg, rw)乘jiffy_elapsed_rnd |
956 | bytes_allowed等于tmp |
968 | 如果非jiffy_wait则jiffy_wait等于1 |
976 | 如果wait则wait等于jiffy_wait |
978 | 返回: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 插件可实现:逻辑报告 代码生成和批量转换代码 |