Lines Matching refs:cmd
82 void kernel_restart_prepare(char *cmd) in kernel_restart_prepare() argument
84 blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd); in kernel_restart_prepare()
224 void do_kernel_restart(char *cmd) in do_kernel_restart() argument
226 atomic_notifier_call_chain(&restart_handler_list, reboot_mode, cmd); in do_kernel_restart()
266 void kernel_restart(char *cmd) in kernel_restart() argument
268 kernel_restart_prepare(cmd); in kernel_restart()
272 if (!cmd) in kernel_restart()
275 pr_emerg("Restarting system with command '%s'\n", cmd); in kernel_restart()
277 machine_restart(cmd); in kernel_restart()
318 unsigned long mode, void *cmd) in sys_off_notify() argument
326 data.cmd = cmd; in sys_off_notify()
701 SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd, in SYSCALL_DEFINE4() argument
725 ret = reboot_pid_ns(pid_ns, cmd); in SYSCALL_DEFINE4()
732 if ((cmd == LINUX_REBOOT_CMD_POWER_OFF) && !kernel_can_power_off()) in SYSCALL_DEFINE4()
733 cmd = LINUX_REBOOT_CMD_HALT; in SYSCALL_DEFINE4()
736 switch (cmd) { in SYSCALL_DEFINE4()
813 static int run_cmd(const char *cmd) in run_cmd() argument
822 argv = argv_split(GFP_KERNEL, cmd, NULL); in run_cmd()