函数逻辑报告 |
Source Code:kernel\power\suspend.c |
Create Date:2022-07-27 10:58:31 |
Last Modify:2020-03-17 14:47:48 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:suspend_devices_and_enter - Suspend devices and enter system sleep state.*@state: System sleep state to enter.
函数原型:int suspend_devices_and_enter(suspend_state_t state)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
suspend_state_t | state |
479 | bool wakeup = false |
481 | 如果非sleep_state_supported(state)则返回:负ENOSYS |
489 | error等于platform_suspend_begin(state) |
494 | suspend_test_start() |
496 | 如果error则 |
497 | 打印错误信息("Some devices failed to suspend, or early wake event detected\n") |
498 | 转到:Recover_platform |
500 | suspend_test_finish("suspend devices") |
501 | 如果suspend_test(TEST_DEVICES)则转到:Recover_platform |
504 | 循环 |
506 | 当非error且非wakeup且platform_suspend_again(state)循环 |
508 | Resume_devices : |
509 | suspend_test_start() |
511 | suspend_test_finish("resume devices") |
512 | trace_suspend_resume(TPS("resume_console"), state, true) |
513 | resume_console() |
514 | trace_suspend_resume(TPS("resume_console"), state, false) |
516 | Close : |
517 | platform_resume_end(state) |
519 | 返回:error |
521 | Recover_platform : |
522 | platform_recover(state) |
523 | 转到:Resume_devices |
名称 | 描述 |
---|---|
enter_state | r_state - Do common work needed to enter system sleep state.*@state: System sleep state to enter.* Make sure that no one else is trying to put the system into a sleep state.* Fail if that's not the case. Otherwise, prepare for system suspend, make the |
snapshot_ioctl |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |