函数逻辑报告 |
Source Code:block\blk-iolatency.c |
Create Date:2022-07-27 19:21:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:iolatency_pd_init
函数原型:static void iolatency_pd_init(struct blkg_policy_data *pd)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct blkg_policy_data * | pd |
| 958 | blkg等于lat_to_blkg(iolat) |
| 960 | blkiolat等于BLKIOLATENCY(rqos) |
| 964 | 如果blk_queue_nonrot( Pointer to the associated request_queue )则ssd = true |
| 966 | 否则ssd = false |
| 971 | stat等于per_cpu_ptr(stats, cpu) |
| 972 | latency_stat_init(iolat, stat) |
| 975 | latency_stat_init(iolat, & cur_stat) |
| 976 | rq_wait_init( & rq_wait) |
| 977 | spin_lock_init( & lock) |
| 978 | queue_depth等于 Max # of requests |
| 980 | default_depth等于queue_depth |
| 982 | cur_win_nsec等于100乘NSEC_PER_MSEC |
| 983 | atomic64_set( & window_start, now) |
| 993 | 否则 |
| 994 | atomic_set( & scale_cookie, DEFAULT_SCALE_COOKIE) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |