Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\suspend.c Create Date:2022-07-28 09:58:10
Last Modify:2020-03-17 14:47:48 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:suspend_set_ops - Set the global suspend method table.*@ops: Suspend operations to use.

Proto:void suspend_set_ops(const struct platform_suspend_ops *ops)

Type:void

Parameter:

TypeParameterName
const struct platform_suspend_ops *ops
205  lock_system_sleep()
207  suspend_ops = ops
209  If valid_state(PM_SUSPEND_STANDBY) Then
210  mem_sleep_states[PM_SUSPEND_STANDBY] = mem_sleep_labels[PM_SUSPEND_STANDBY]
211  pm_states[PM_SUSPEND_STANDBY] = pm_labels[PM_SUSPEND_STANDBY]
212  If mem_sleep_default == PM_SUSPEND_STANDBY Then mem_sleep_current = PM_SUSPEND_STANDBY
215  If valid_state(PM_SUSPEND_MEM) Then
216  mem_sleep_states[PM_SUSPEND_MEM] = mem_sleep_labels[PM_SUSPEND_MEM]
217  If mem_sleep_default >= PM_SUSPEND_MEM Then mem_sleep_current = PM_SUSPEND_MEM
221  unlock_system_sleep()