函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hibernation_platform_enter - Power off the system using the platform driver.

函数原型:int hibernation_platform_enter(void)

返回类型:int

参数:

546  如果非hibernation_ops则返回:负ENOSYS
554  error等于begin(PMSG_HIBERNATE)
555  如果error则转到:Close
558  entering_platform_hibernation = true
559  Suspend and resume console messages over PM events
560  error等于dpm_suspend_start(PMSG_HIBERNATE)
561  如果error
562  如果recoverrecover()
564  转到:Resume_devices
567  error等于dpm_suspend_end(PMSG_HIBERNATE)
568  如果error则转到:Resume_devices
571  error等于prepare()
572  如果error则转到:Platform_finish
575  error等于suspend_disable_secondary_cpus()
576  如果error则转到:Enable_cpus
579  禁止中断()
580  Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE.等于SYSTEM_SUSPEND
581  syscore_suspend()
582  如果pm_wakeup_pending()则
583  error等于负EAGAIN
584  转到:Power_up
587  enter()
589  当1循环
591  Power_up :
592  syscore_resume()
593  Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE.等于SYSTEM_RUNNING
594  开中断()
596  Enable_cpus :
597  suspend_enable_secondary_cpus()
599  Platform_finish :
600  finish()
602  dpm_resume_start(PMSG_RESTORE)
604  Resume_devices :
605  entering_platform_hibernation = false
606  dpm_resume_end(PMSG_RESTORE)
607  resume_console()
609  Close :
610  end()
612  返回:error
调用者
名称描述
power_downpower_down - Shut the machine down for hibernation.* Use the platform driver, if configured, to put the system into the sleep* state corresponding to hibernation, or try to power it off or reboot,* depending on the value of hibernation_mode.
snapshot_ioctl