函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static void power_down(void)

返回类型:void

参数:

645  :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  退出
648  :hibernation_mode恒等于HIBERNATION_PLATFORM
649  hibernation_platform_enter - Power off the system using the platform driver.
651  :hibernation_mode恒等于HIBERNATION_SHUTDOWN
652  如果pm_power_offkernel_power_off - power_off the system* Shutdown everything and perform a clean system power_off.
654  退出
656  kernel_halt - halt the system* Shutdown everything and perform a clean system halt.
661  打印错误信息("Power down manually\n")
662  当1循环
663  cpu_relax()
调用者
名称描述
hibernatehibernate - Carry out system hibernation, including saving the image.