Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kernel_restart_prepare

Proto:void kernel_restart_prepare(char *cmd)

Type:void

Parameter:

TypeParameterName
char *cmd
73  blocking_notifier_call_chain( & Notifier list for kernel code which wants to be called* at shutdown. This is used to stop any idling DMA operations* and the like., SYS_RESTART, cmd)
74  Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. = SYSTEM_RESTART
75  usermodehelper_disable()
76  drivers/base/power/shutdown.c
Caller
NameDescribe
kernel_restartkernel_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.
kernel_kexecMove into place and start executing a preloaded standalone* executable. If nothing was preloaded return an error.