函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Move into place and start executing a preloaded standalone* executable. If nothing was preloaded return an error.

函数原型:int kernel_kexec(void)

返回类型:int

参数:

1121  error等于0
1123  如果非mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically则返回:负EBUSY
1125  如果非kexec_image
1126  error等于负EINVAL
1127  转到:Unlock
1163  Flag to indicate we are going to kexec a new kernel = true
1164  kernel_restart_prepare(NULL)
1165  migrate_to_reboot_cpu()
1173  cpu_hotplug_enable()
1174  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.("Starting new kernel\n")
1175  machine_shutdown()
1178  Do not allocate memory (or fail in any way) in machine_kexec().* We are past the point of no return, committed to rebooting now.
1199  Unlock :
1200  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1201  返回:error
调用者
名称描述
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.