Lines Matching refs:chan
130 * on chan, at which time the process
151 caddr_t chan,
175 ut->uu_wchan = chan;
178 if (mtx != NULL && chan != NULL && (thread_continue_t)continuation == THREAD_CONTINUE_NULL) {
182 chan, (catch) ? THREAD_ABORTSAFE : THREAD_UNINT, abstime);
185 chan, (catch) ? THREAD_ABORTSAFE : THREAD_UNINT);
188 if (chan != NULL)
189 assert_wait_deadline(chan, (catch) ? THREAD_ABORTSAFE : THREAD_UNINT, abstime);
277 void *chan,
280 return _sleep((caddr_t)chan, pri, (char *)NULL, 0, (int (*)(int))0, (lck_mtx_t *)0);
285 void *chan,
297 return _sleep((caddr_t)chan, pri, wmsg, abstime, continuation, mtx);
302 void *chan,
315 return _sleep((caddr_t)chan, pri, wmsg, abstime, (int (*)(int))0, mtx);
320 void *chan,
326 return _sleep((caddr_t)chan, pri, wmsg, abstime, (int (*)(int))0, mtx);
331 void *chan,
340 return _sleep((caddr_t)chan, pri, wmsg, abstime, (int (*)(int))0, (lck_mtx_t *)0);
345 void *chan,
355 return _sleep((caddr_t)chan, pri, wmsg, abstime, continuation, (lck_mtx_t *)0);
360 void *chan,
366 return _sleep((caddr_t)chan, pri, wmsg, abstime, continuation, (lck_mtx_t *)0);
370 * Wake up all processes sleeping on chan.
373 wakeup(void *chan)
375 thread_wakeup_prim((caddr_t)chan, FALSE, THREAD_AWAKENED);
379 * Wake up the first process sleeping on chan.
385 wakeup_one(caddr_t chan)
387 thread_wakeup_prim((caddr_t)chan, TRUE, THREAD_AWAKENED);