Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
suspend_state_tstate
609  If state <= PM_SUSPEND_ON || state >= PM_SUSPEND_MAX Then Return -EINVAL
612  pr_info("suspend entry (%s)\n", mem_sleep_labels[state])
613  error = 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
614  If error Then
615  fail++
616  dpm_save_failed_errno(error)
617  Else
618  success++
620  pr_info("suspend exit\n")
621  Return error
Caller
NameDescribe
test_wakealarmTo 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