函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:migrate_to_reboot_cpu

函数原型:void migrate_to_reboot_cpu(void)

返回类型:void

参数:

221  cpu等于reboot_cpu
223  cpu_hotplug_disable()
226  如果非cpu_online(cpu)则cpu等于Uniprocessor. Assume all masks are "1".
230  flags或等于Userland is not allowed to meddle with cpus_mask
233  set_cpus_allowed_ptr(当前进程, cpumask_of - the cpumask containing just a given cpu*@cpu: the cpu (<= nr_cpu_ids)(cpu))
调用者
名称描述
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.