函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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_tstate
609  如果state小于等于PM_SUSPEND_ONstate大于等于PM_SUSPEND_MAX则返回:负EINVAL
612  打印信息("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  如果error
615  fail自加
616  dpm_save_failed_errno(error)
617  否则
618  success自加
620  打印信息("suspend exit\n")
621  返回:error
调用者
名称描述
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