函数逻辑报告 |
Source Code:block\blk-iocost.c |
Create Date:2022-07-27 19:24:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:blk_iocost_init
函数原型:static int blk_iocost_init(struct request_queue *q)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct request_queue * | q |
1921 | pcpu_stat等于alloc_percpu(structioc_pcpu_stat) |
1922 | 如果非pcpu_stat则 |
1928 | id等于RQ_QOS_COST |
1929 | ops等于ioc_rqos_ops |
1932 | spin_lock_init( & lock) |
1934 | 初始化链表头 |
1937 | atomic64_set( & vtime_rate, VTIME_PER_USEC) |
1938 | seqcount_init( & period_seqcount) |
1939 | wallclock starttime 等于ktime_to_us(ktime_get()) |
1940 | atomic64_set( & c'd each period , 0) |
1941 | atomic_set( & r lazy hweights , 0) |
1943 | spin_lock_irq( & lock) |
1944 | autop_idx等于AUTOP_INVALID |
1945 | ioc_refresh_params(ioc, true) |
1946 | spin_unlock_irq( & lock) |
1948 | rq_qos_add(q, rqos) |
1949 | ret等于lkcg_activate_policy - activate a blkcg policy on a request_queue*@q: request_queue of interest*@pol: blkcg policy to activate* Activate @pol on @q |
1950 | 如果ret则 |
1956 | 返回:0 |
名称 | 描述 |
---|---|
ioc_qos_write | |
ioc_cost_model_write |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |