函数逻辑报告 |
Source Code:block\blk-pm.c |
Create Date:2022-07-27 19:48:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lk_pre_runtime_suspend - Pre runtime suspend check*@q: the queue of the device* Description:* This function will check if runtime suspend is allowed for the device* by examining if there are any requests pending in the queue
函数原型:int blk_pre_runtime_suspend(struct request_queue *q)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct request_queue * | q |
63 | ret等于0 |
68 | WARN_ON_ONCE(rpm_status != RPM_ACTIVE) |
87 | 如果判断percpu无计数引用则ret等于0 |
92 | spin_lock_irq( & queue_lock) |
93 | 如果ret小于0则pm_runtime_mark_last_busy(dev) |
95 | 否则rpm_status等于RPM_SUSPENDING |
97 | spin_unlock_irq( & queue_lock) |
99 | 如果ret则blk_clear_pm_only(q) |
102 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |