Lines Matching refs:cmd
71 void kernel_restart_prepare(char *cmd)
73 blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd);
213 void do_kernel_restart(char *cmd)
215 atomic_notifier_call_chain(&restart_handler_list, reboot_mode, cmd);
233 void do_kernel_pre_restart(char *cmd)
235 atomic_notifier_call_chain(&pre_restart_handler_list, reboot_mode, cmd);
260 * @cmd: pointer to buffer containing command to execute for restart
266 void kernel_restart(char *cmd)
268 kernel_restart_prepare(cmd);
271 if (!cmd) {
274 pr_emerg("Restarting system with command '%s'\n", cmd);
277 machine_restart(cmd);
333 SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd, void __user *, arg)
355 ret = reboot_pid_ns(pid_ns, cmd);
363 if ((cmd == LINUX_REBOOT_CMD_POWER_OFF) && !pm_power_off) {
364 cmd = LINUX_REBOOT_CMD_HALT;
368 switch (cmd) {
446 static int run_cmd(const char *cmd)
451 argv = argv_split(GFP_KERNEL, cmd, NULL);