函数逻辑报告 |
Source Code:kernel\power\suspend.c |
Create Date:2022-07-27 10:58:34 |
Last Modify:2020-03-17 14:47:48 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:pm_suspend - Externally visible function for suspending the system.*@state: System sleep state to enter.* Check if the value of @state represents one of the supported states,* execute enter_state() and update system suspend statistics.
函数原型:int pm_suspend(suspend_state_t state)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
suspend_state_t | state |
609 | 如果state小于等于PM_SUSPEND_ON或state大于等于PM_SUSPEND_MAX则返回:负EINVAL |
612 | 打印信息("suspend entry (%s)\n", mem_sleep_labels[state]) |
614 | 如果error则 |
615 | fail自加 |
617 | 否则 |
618 | success自加 |
620 | 打印信息("suspend exit\n") |
621 | 返回:error |
名称 | 描述 |
---|---|
test_wakealarm | To test system suspend, we need a hands-off mechanism to resume the* system. RTCs wake alarms are a common self-contained mechanism. |
try_to_suspend |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |