函数逻辑报告 |
Source Code:kernel\power\suspend.c |
Create Date:2022-07-27 10:58:29 |
| Last Modify:2020-03-17 14:47:48 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:suspend_enter - Make the system enter the given sleep state.*@state: System sleep state to enter.*@wakeup: Returns information that the sleep state should not be re-entered.* This function should be called after devices have been suspended.
函数原型:static int suspend_enter(suspend_state_t state, bool *wakeup)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| suspend_state_t | state | |
| bool * | wakeup |
| 396 | 如果error则转到:Platform_finish |
| 400 | 如果error则 |
| 401 | 打印错误信息("late suspend of devices failed\n") |
| 402 | 转到:Platform_finish |
| 405 | 如果error则转到:Devices_early_resume |
| 409 | 如果error则 |
| 410 | 打印错误信息("noirq suspend of devices failed\n") |
| 411 | 转到:Platform_early_resume |
| 414 | 如果error则转到:Platform_wake |
| 417 | 如果suspend_test(TEST_PLATFORM)则转到:Platform_wake |
| 420 | 如果state恒等于PM_SUSPEND_TO_IDLE则 |
| 421 | s2idle_loop() |
| 422 | 转到:Platform_wake |
| 426 | 如果error或suspend_test(TEST_CPUS)则转到:Enable_cpus |
| 432 | Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE.等于SYSTEM_SUSPEND |
| 434 | error等于syscore_suspend() |
| 435 | 如果非error则 |
| 436 | wakeup等于pm_wakeup_pending() |
| 437 | 如果非suspend_test(TEST_CORE)或wakeup的值则 |
| 438 | trace_suspend_resume(TPS("machine_suspend"), state, true) |
| 441 | trace_suspend_resume(TPS("machine_suspend"), state, false) |
| 443 | 否则如果wakeup则 |
| 446 | syscore_resume() |
| 449 | Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE.等于SYSTEM_RUNNING |
| 454 | Enable_cpus : |
| 457 | Platform_wake : |
| 461 | Platform_early_resume : |
| 464 | Devices_early_resume : |
| 467 | Platform_finish : |
| 469 | 返回:error |
| 名称 | 描述 |
|---|---|
| suspend_devices_and_enter | suspend_devices_and_enter - Suspend devices and enter system sleep state.*@state: System sleep state to enter. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |