函数逻辑报告 |
Source Code:block\blk-cgroup.c |
Create Date:2022-07-27 19:16:19 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:lkcg_policy_register - register a blkcg policy*@pol: blkcg policy to register* Register @pol with blkcg core. Might sleep and @pol may be modified on* successful registration. Returns 0 on success and -errno on failure.
函数原型:int blkcg_policy_register(struct blkcg_policy *pol)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct blkcg_policy * | pol |
| 1381 | mutex_lock( & blkcg_pol_mutex) |
| 1385 | 以i小于Maximum number of blkcg policies allowed to be registered concurrently.* Defined here to simplify include dependency.循环如果非blkcg_policy[i]则 |
| 1387 | 退出 |
| 1389 | 打印警告信息("blkcg_policy_register: BLKCG_MAX_POLS too small\n") |
| 1390 | 转到:err_unlock |
| 1394 | 如果非 operations 按位异或非cpd_free_fn或非pd_alloc_fn按位异或非pd_free_fn则转到:err_unlock |
| 1400 | blkcg_policy[plid] = pol |
| 1403 | 如果 operations 则 |
| 1429 | 返回:0 |
| 1431 | err_free_cpds : |
| 1432 | 如果cpd_free_fn则 |
| 1440 | = |
| 1441 | err_unlock : |
| 1444 | 返回:ret |
| 名称 | 描述 |
|---|---|
| throtl_init | |
| iolatency_init | |
| ioc_init |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |