Function report |
Source Code:kernel\kexec_core.c |
Create Date:2022-07-28 11:03:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Move into place and start executing a preloaded standalone* executable. If nothing was preloaded return an error.
Proto:int kernel_kexec(void)
Type:int
Parameter:Nothing
| 1121 | error = 0 |
| 1123 | If Not mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically Then Return -EBUSY |
| 1125 | If Not kexec_image Then |
| 1127 | Go to Unlock |
| 1164 | kernel_restart_prepare(NULL) |
| 1165 | migrate_to_reboot_cpu() |
| 1173 | cpu_hotplug_enable() |
| 1175 | machine_shutdown() |
| 1199 | Unlock : |
| 1201 | Return error |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE4 | Reboot 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |