Lines Matching defs:wchan

165 static int	sleepq_catch_signals(const void *wchan, int pri);
175 static void sleepq_switch(const void *wchan, int pri);
260 sleepq_lock(const void *wchan)
264 sc = SC_LOOKUP(wchan);
274 sleepq_lookup(const void *wchan)
279 KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
280 sc = SC_LOOKUP(wchan);
283 if (sq->sq_wchan == wchan)
292 sleepq_release(const void *wchan)
296 sc = SC_LOOKUP(wchan);
307 sleepq_add(const void *wchan, struct lock_object *lock, const char *wmesg,
315 sc = SC_LOOKUP(wchan);
318 MPASS(wchan != NULL);
327 ("%s: td %p to sleep on wchan %p with sleeping prohibited",
328 __func__, td, wchan));
331 /* Look up the sleep queue associated with the wait channel 'wchan'. */
332 sq = sleepq_lookup(wchan);
365 sq->sq_wchan = wchan;
368 MPASS(wchan == sq->sq_wchan);
378 td->td_wchan = wchan;
394 sleepq_set_timeout_sbt(const void *wchan, sbintime_t sbt, sbintime_t pr,
402 sc = SC_LOOKUP(wchan);
406 MPASS(wchan != NULL);
423 sleepq_sleepcnt(const void *wchan, int queue)
427 KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
429 sq = sleepq_lookup(wchan);
502 sleepq_catch_signals(const void *wchan, int pri)
509 sc = SC_LOOKUP(wchan);
511 MPASS(wchan != NULL);
523 sleepq_switch(wchan, pri);
530 sq = sleepq_lookup(wchan);
546 sleepq_switch(const void *wchan, int pri)
554 sc = SC_LOOKUP(wchan);
593 sq = sleepq_lookup(wchan);
652 sleepq_wait(const void *wchan, int pri)
659 sleepq_switch(wchan, pri);
667 sleepq_wait_sig(const void *wchan, int pri)
671 rcatch = sleepq_catch_signals(wchan, pri);
682 sleepq_timedwait(const void *wchan, int pri)
690 sleepq_switch(wchan, pri);
700 sleepq_timedwait_sig(const void *wchan, int pri)
704 rcatch = sleepq_catch_signals(wchan, pri);
719 sleepq_type(const void *wchan)
724 MPASS(wchan != NULL);
726 sq = sleepq_lookup(wchan);
869 const void *wchan;
873 wchan = td->td_wchan;
874 sc = SC_LOOKUP(wchan);
876 sq = sleepq_lookup(wchan);
925 sleepq_signal(const void *wchan, int flags, int pri, int queue)
932 CTR2(KTR_PROC, "sleepq_signal(%p, %d)", wchan, flags);
933 KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
935 sq = sleepq_lookup(wchan);
938 sleepq_release(wchan);
951 sc = SC_LOOKUP(wchan);
988 sleepq_broadcast(const void *wchan, int flags, int pri, int queue)
992 CTR2(KTR_PROC, "sleepq_broadcast(%p, %d)", wchan, flags);
993 KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
995 sq = sleepq_lookup(wchan);
1035 const void *wchan;
1052 wchan = td->td_wchan;
1053 sc = SC_LOOKUP(wchan);
1055 sq = sleepq_lookup(wchan);
1077 sleepq_remove(struct thread *td, const void *wchan)
1087 MPASS(wchan != NULL);
1088 sc = SC_LOOKUP(wchan);
1093 * wchan can guarantee that we do not miss a wakeup for this
1096 if (!TD_ON_SLEEPQ(td) || td->td_wchan != wchan) {
1102 sq = sleepq_lookup(wchan);
1104 MPASS(td->td_wchan == wchan);
1118 const void *wchan;
1148 wchan = td->td_wchan;
1149 MPASS(wchan != NULL);
1150 sq = sleepq_lookup(wchan);
1178 * Prints the stacks of all threads presently sleeping on wchan/queue to
1185 sleepq_sbuf_print_stacks(struct sbuf *sb, const void *wchan, int queue,
1198 KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
1230 sleepq_lock(wchan);
1231 sq = sleepq_lookup(wchan);
1236 sleepq_release(wchan);
1257 sleepq_release(wchan);
1273 sleepq_release(wchan);
1452 void *wchan;
1462 wchan = (void *)addr;
1463 sc = SC_LOOKUP(wchan);
1465 if (sq->sq_wchan == wchan)