Lines Matching refs:ret
48 int flags, ret;
62 ret = -sleepq_wait_sig(wchan, 0);
64 ret = -sleepq_timedwait_sig(wchan, 0);
68 ret = 0;
70 ret = -sleepq_timedwait(wchan, 0);
75 if (ret != 0 && ret != -EWOULDBLOCK) {
76 linux_schedule_save_interrupt_value(task, ret);
77 ret = -ERESTARTSYS;
79 return (ret);
85 int ret;
90 ret = -pause_sbt("lnxsleep", mstosbt(ms), 0, C_HARDCLOCK | C_CATCH);
92 switch (ret) {
96 linux_schedule_save_interrupt_value(current, ret);
104 int ret, wakeup_swapper;
106 ret = wakeup_swapper = 0;
111 ret = 1;
116 return (ret);
138 bool ret;
142 ret = SIGISMEMBER(td->td_siglist, SIGKILL) ||
145 return (ret);
175 int ret;
178 if ((ret = wake_up_task(task, state)) != 0)
180 return (ret);
248 bool ret;
251 ret = !list_empty(&wqh->task_list);
253 return (ret);
261 int ret;
281 ret = linux_add_to_sleepqueue(task, task, "wevent", timeout,
285 ret = 0;
291 return (ret);
298 int ret;
315 ret = linux_add_to_sleepqueue(task, task, "sched", timeout,
319 ret = 0;
330 if (ret == -ERESTARTSYS && remainder < 1)
366 int ret;
380 ret = 0;
384 ret = linux_add_to_sleepqueue(wchan, task, "wbit", timeout,
386 if (ret != 0)
391 return (ret);
406 int ret;
414 ret = 0;
418 ret = linux_add_to_sleepqueue(wchan, task, "watomic", 0, state);
419 if (ret != 0)
424 return (ret);