函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\suspend.c Create Date:2022-07-27 10:58:20
Last Modify:2020-03-17 14:47:48 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:设置平台相关暂停操作

函数原型:void suspend_set_ops(const struct platform_suspend_ops *ops)

返回类型:void

参数:

类型参数名称
const struct platform_suspend_ops *ops
205  lock_system_sleep()
207  suspend_ops等于ops
209  如果valid_state(PM_SUSPEND_STANDBY)则
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  如果mem_sleep_default恒等于PM_SUSPEND_STANDBYmem_sleep_current等于PM_SUSPEND_STANDBY
215  如果valid_state(PM_SUSPEND_MEM)则
216  mem_sleep_states[PM_SUSPEND_MEM]等于mem_sleep_labels[PM_SUSPEND_MEM]
217  如果mem_sleep_default大于等于PM_SUSPEND_MEMmem_sleep_current等于PM_SUSPEND_MEM
221  unlock_system_sleep()