Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:migrate_to_reboot_cpu

Proto:void migrate_to_reboot_cpu(void)

Type:void

Parameter:Nothing

221  cpu = reboot_cpu
223  cpu_hotplug_disable()
226  If Not cpu_online(cpu) Then cpu = Uniprocessor. Assume all masks are "1".
230  flags |= Userland is not allowed to meddle with cpus_mask
233  set_cpus_allowed_ptr(current process, cpumask_of - the cpumask containing just a given cpu*@cpu: the cpu (<= nr_cpu_ids)(cpu))
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_haltkernel_halt - halt the system* Shutdown everything and perform a clean system halt.
kernel_power_offkernel_power_off - power_off the system* Shutdown everything and perform a clean system power_off.
kernel_kexecMove into place and start executing a preloaded standalone* executable. If nothing was preloaded return an error.