Function report |
Source Code:block\blk-pm.c |
Create Date:2022-07-28 18:13:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int blk_pre_runtime_suspend(struct request_queue *q)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q |
63 | ret = 0 |
68 | WARN_ON_ONCE(rpm_status != RPM_ACTIVE) |
92 | spin_lock_irq( & queue_lock) |
93 | If ret < 0 Then pm_runtime_mark_last_busy(dev) |
95 | Else rpm_status = RPM_SUSPENDING |
97 | spin_unlock_irq( & queue_lock) |
99 | If ret Then blk_clear_pm_only(q) |
102 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |