函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kernel_restart_prepare

函数原型:void kernel_restart_prepare(char *cmd)

返回类型:void

参数:

类型参数名称
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
调用者
名称描述
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.