Lines Matching +full:everything +full:- +full:else

1 // SPDX-License-Identifier: GPL-2.0-only
22 * this indicates whether you can reboot with ctrl-alt-del: the default is yes
31 #else
57 * emergency_restart - reboot the system
80 * register_reboot_notifier - Register function to be called at reboot time
96 * unregister_reboot_notifier - Unregister previously registered reboot notifier
102 * Returns zero on success, or %-ENOENT on failure.
123 return -ENOMEM; in devm_register_reboot_notifier()
129 } else { in devm_register_reboot_notifier()
144 * register_restart_handler - Register function to be called to reset
147 * @nb->priority: Handler priority. Handlers should follow the
163 * machine_restart function calls do_kernel_restart - see below
169 * Restart handlers are expected to be registered from non-architecture
188 * unregister_restart_handler - Unregister previously registered
194 * Returns zero on success, or %-ENOENT on failure.
203 * do_kernel_restart - Execute kernel restart handler call chain
230 current->flags |= PF_NO_SETAFFINITY; in migrate_to_reboot_cpu()
237 * kernel_restart - reboot the system
241 * Shutdown everything and perform a clean reboot.
251 else in kernel_restart()
267 * kernel_halt - halt the system
269 * Shutdown everything and perform a clean system halt.
283 * kernel_power_off - power_off the system
285 * Shutdown everything and perform a clean system power_off.
306 * You can also set the meaning of the ctrl-alt-del-key here.
318 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
319 return -EPERM; in SYSCALL_DEFINE4()
327 return -EINVAL; in SYSCALL_DEFINE4()
369 ret = strncpy_from_user(&buffer[0], arg, sizeof(buffer) - 1); in SYSCALL_DEFINE4()
371 ret = -EFAULT; in SYSCALL_DEFINE4()
374 buffer[sizeof(buffer) - 1] = '\0'; in SYSCALL_DEFINE4()
392 ret = -EINVAL; in SYSCALL_DEFINE4()
405 * This function gets called by ctrl-alt-del - ie the keyboard interrupt.
407 * is whether to reboot at once, or just ignore the ctrl-alt-del.
415 else in ctrl_alt_del()
435 } else { in run_cmd()
436 ret = -ENOMEM; in run_cmd()
488 * orderly_poweroff - Trigger an orderly system poweroff
510 * orderly_reboot - Trigger an orderly system reboot
536 } else { in reboot_setup()
556 else if (str[1] == 'm' && str[2] == 'p' && in reboot_setup()
559 else in reboot_setup()
591 else in reboot_setup()