函数逻辑报告 |
Source Code:block\blk-cgroup.c |
Create Date:2022-07-27 19:15:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:lkg_conf_prep - parse and prepare for per-blkg config update*@blkcg: target block cgroup*@pol: target policy*@input: input string*@ctx: blkg_conf_ctx to be filled* Parse per-blkg config update from @input and initialize @ctx with the* result
函数原型:int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, char *input, struct blkg_conf_ctx *ctx)__acquires(rcu) __acquires(&disk->queue->queue_lock)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct blkcg * | blkcg | |
| const struct blkcg_policy * | pol | |
| char * | input | |
| struct blkg_conf_ctx * | ctx |
| 643 | spin_lock_irq( & queue_lock) |
| 646 | 如果是错误则 |
| 648 | 转到:fail_unlock |
| 658 | 当(true)循环 |
| 663 | parent等于lkcg_parent - get the parent of a blkcg*@blkcg: blkcg of interest* Return the parent blkcg of @blkcg. Can be called anytime. |
| 670 | spin_unlock_irq( & queue_lock) |
| 674 | 如果此条件成立可能性小(为编译器优化)(!new_blkg)则 |
| 680 | spin_lock_irq( & queue_lock) |
| 683 | 如果是错误则 |
| 685 | 转到:fail_unlock |
| 688 | 如果blkg则 |
| 690 | 否则 |
| 701 | success : |
| 705 | 返回:0 |
| 707 | fail_unlock : |
| 708 | spin_unlock_irq( & queue_lock) |
| 710 | fail : |
| 719 | msleep - sleep safely even with waitqueue interruptions*@msecs: Time in milliseconds to sleep for |
| 720 | ret等于restart_syscall() |
| 722 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |