函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\hibernate.c Create Date:2022-07-27 10:59:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:hibernation_set_ops - Set the global hibernate operations.*@ops: Hibernation operations to use in subsequent hibernation transitions.

函数原型:void hibernation_set_ops(const struct platform_hibernation_ops *ops)

返回类型:void

参数:

类型参数名称
const struct platform_hibernation_ops *ops
81  如果ops且非beginendpre_snapshotpreparefinishenterpre_restorerestore_cleanupleave的值则
84  WARN_ON(1)
85  返回
87  lock_system_sleep()
88  hibernation_ops等于ops
89  如果opshibernation_mode等于HIBERNATION_PLATFORM
91  否则如果hibernation_mode恒等于HIBERNATION_PLATFORMhibernation_mode等于HIBERNATION_SHUTDOWN
94  unlock_system_sleep()