Lines Matching refs:ret
285 int ret = 0; in SYSCALL_DEFINE4() local
304 ret = reboot_pid_ns(pid_ns, cmd); in SYSCALL_DEFINE4()
305 if (ret) in SYSCALL_DEFINE4()
306 return ret; in SYSCALL_DEFINE4()
339 ret = strncpy_from_user(&buffer[0], arg, sizeof(buffer) - 1); in SYSCALL_DEFINE4()
340 if (ret < 0) { in SYSCALL_DEFINE4()
341 ret = -EFAULT; in SYSCALL_DEFINE4()
351 ret = kernel_kexec(); in SYSCALL_DEFINE4()
357 ret = hibernate(); in SYSCALL_DEFINE4()
362 ret = -EINVAL; in SYSCALL_DEFINE4()
366 return ret; in SYSCALL_DEFINE4()
400 int ret; in run_cmd() local
403 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in run_cmd()
406 ret = -ENOMEM; in run_cmd()
409 return ret; in run_cmd()
414 int ret; in __orderly_reboot() local
416 ret = run_cmd(reboot_cmd); in __orderly_reboot()
418 if (ret) { in __orderly_reboot()
424 return ret; in __orderly_reboot()
429 int ret; in __orderly_poweroff() local
431 ret = run_cmd(poweroff_cmd); in __orderly_poweroff()
433 if (ret && force) { in __orderly_poweroff()
445 return ret; in __orderly_poweroff()