函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kernel_power_off - power_off the system* Shutdown everything and perform a clean system power_off.

函数原型:void kernel_power_off(void)

返回类型:void

参数:

289  kernel_shutdown_prepare(SYSTEM_POWER_OFF)
290  如果pm_power_off_preparepm_power_off_prepare()
292  migrate_to_reboot_cpu()
293  syscore_shutdown()
294  These can be used to print at the various log levels.* All of these will print unconditionally, although note that pr_debug()* and other debug macros are compiled out unless either DEBUG is defined* or CONFIG_DYNAMIC_DEBUG is set.("Power down\n")
295  kmsg_dump(KMSG_DUMP_POWEROFF)
296  machine_power_off()
调用者
名称描述
SYSCALL_DEFINE4Reboot system call: for obvious reasons only root may call it,* and even root needs to set up some magic numbers in the registers* so that some mistake won't make this reboot the whole machine.* You can also set the meaning of the ctrl-alt-del-key here.
__orderly_poweroff
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.
do_poweroffWhen the user hits Sys-Rq o to power down the machine this is the* callback we use.
rcu_perf_shutdownRCU perf shutdown kthread. Just waits to be awakened, then shuts* down system.
torture_shutdownCause the torture test to shutdown the system after the test has* run for the time specified by the shutdown_secs parameter.