Function report |
Source Code:kernel\power\suspend.c |
Create Date:2022-07-28 09:58:25 |
Last Modify:2020-03-17 14:47:48 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int pm_suspend(suspend_state_t state)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
suspend_state_t | state |
609 | If state <= PM_SUSPEND_ON || state >= PM_SUSPEND_MAX Then Return -EINVAL |
612 | pr_info("suspend entry (%s)\n", mem_sleep_labels[state]) |
614 | If error Then |
615 | fail++ |
617 | Else |
618 | success++ |
620 | pr_info("suspend exit\n") |
621 | Return error |
Name | Describe |
---|---|
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 |
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 |