emergency_restart(9)
π NAME π
okay so emergency_restart is literally the βreboot the systemβ function, bestie β and this is the emergency_restart(9) page in the Kernel API Manual. Itβs giving emergency main character energy. π
β¨ SYNOPSIS β¨
void emergency_restart (void );
thatβs the whole signature, no cap. π«Ά
π ARGUMENTS π
voidβ no arguments. zero. nada. nothing to pass in, bestie. π
π¦ DESCRIPTION π¦
When you call this, it reboots the system without shutting down any hardware or taking any locks. Itβs the βwe know weβre in troubleβ move, so this is the best effort to reboot. And yes: it is safe to call in interrupt context. Slay for emergency code, honestly. π₯
π SEE ALSO π
bestie, the cross-reference list is long and iconic β no skipping, fr fr:
- Kernel file:
./kernel/reboot.cβ the kernel file, front and center. register_reboot_notifier(9)unregister_reboot_notifier(9)register_restart_handler(9)unregister_restart_handler(9)do_kernel_restart(9)kernel_restart(9)kernel_halt(9)register_sys_off_handler(9)unregister_sys_off_handler(9)devm_register_sys_off_handler(9)devm_register_power_off_handler(9)devm_register_restart_handler(9)register_platform_power_off(9)unregister_platform_power_off(9)do_kernel_power_off(9)kernel_can_power_off(9)kernel_power_off(9)orderly_poweroff(9)orderly_reboot(9)hw_failure_emergency_action_func(9)hw_failure_emergency_schedule(9)__hw_protection_trigger(9)
and thatβs the page, bestie! source/version corner: ./kernel; date: October 2026; manual: emergency_restart(9). mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms