Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\hibernate.c Create Date:2022-07-28 09:59:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hibernation_set_ops - Set the global hibernate operations.*@ops: Hibernation operations to use in subsequent hibernation transitions.

Proto:void hibernation_set_ops(const struct platform_hibernation_ops *ops)

Type:void

Parameter:

TypeParameterName
const struct platform_hibernation_ops *ops
81  If ops && Not ( begin && end && pre_snapshot && prepare && finish && enter && pre_restore && restore_cleanup && leave) Then
84  WARN_ON(1)
85  Return
87  lock_system_sleep()
88  hibernation_ops = ops
89  If ops Then hibernation_mode = HIBERNATION_PLATFORM
91  Else if hibernation_mode == HIBERNATION_PLATFORM Then hibernation_mode = HIBERNATION_SHUTDOWN
94  unlock_system_sleep()