Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:power_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.

Proto:static void power_down(void)

Type:void

Parameter:Nothing

645  Case hibernation_mode == HIBERNATION_REBOOT
646  kernel_restart - reboot the system*@cmd: pointer to buffer containing command to execute for restart* or %NULL* Shutdown everything and perform a clean reboot.* This is not safe to call in interrupt context.
647  Break
648  Case hibernation_mode == HIBERNATION_PLATFORM
649  hibernation_platform_enter - Power off the system using the platform driver.
651  Case hibernation_mode == HIBERNATION_SHUTDOWN
652  If pm_power_off Then kernel_power_off - power_off the system* Shutdown everything and perform a clean system power_off.
654  Break
656  kernel_halt - halt the system* Shutdown everything and perform a clean system halt.
661  pr_crit("Power down manually\n")
662  When 1 cycle
663  cpu_relax()
Caller
NameDescribe
hibernatehibernate - Carry out system hibernation, including saving the image.