bin/ps/extern.h
94
char *wchan(KINFO *, VARENT *);
bin/ps/keyword.c
231
{"wchan", {NULL}, "WCHAN", "wait-channel", LJUST, wchan, 0,
lib/libthr/thread/thr_cond.c
284
if (curthread->wchan != NULL)
lib/libthr/thread/thr_cond.c
323
if (curthread->wchan == NULL) {
lib/libthr/thread/thr_private.h
548
void *wchan;
lib/libthr/thread/thr_sleepq.c
103
if (sq->sq_wchan == wchan)
lib/libthr/thread/thr_sleepq.c
109
_sleepq_lookup(void *wchan)
lib/libthr/thread/thr_sleepq.c
111
return (lookup(SC_LOOKUP(wchan), wchan));
lib/libthr/thread/thr_sleepq.c
115
_sleepq_add(void *wchan, struct pthread *td)
lib/libthr/thread/thr_sleepq.c
120
sc = SC_LOOKUP(wchan);
lib/libthr/thread/thr_sleepq.c
121
sq = lookup(sc, wchan);
lib/libthr/thread/thr_sleepq.c
127
sq->sq_wchan = wchan;
lib/libthr/thread/thr_sleepq.c
131
td->wchan = wchan;
lib/libthr/thread/thr_sleepq.c
153
td->wchan = NULL;
lib/libthr/thread/thr_sleepq.c
172
td->wchan = NULL;
lib/libthr/thread/thr_sleepq.c
178
td->wchan = NULL;
lib/libthr/thread/thr_sleepq.c
34
#define SC_HASH(wchan) ((unsigned) \
lib/libthr/thread/thr_sleepq.c
35
((((uintptr_t)(wchan) >> 3) \
lib/libthr/thread/thr_sleepq.c
36
^ ((uintptr_t)(wchan) >> (HASHSHIFT + 3))) \
lib/libthr/thread/thr_sleepq.c
78
_sleepq_lock(void *wchan)
lib/libthr/thread/thr_sleepq.c
83
sc = SC_LOOKUP(wchan);
lib/libthr/thread/thr_sleepq.c
88
_sleepq_unlock(void *wchan)
lib/libthr/thread/thr_sleepq.c
93
sc = SC_LOOKUP(wchan);
lib/libthr/thread/thr_sleepq.c
98
lookup(struct sleepqueue_chain *sc, void *wchan)
sys/compat/linuxkpi/common/src/linux_schedule.c
206
void *wchan;
sys/compat/linuxkpi/common/src/linux_schedule.c
212
wchan = wq->private;
sys/compat/linuxkpi/common/src/linux_schedule.c
218
sleepq_lock(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
220
ret = linux_add_to_sleepqueue(wchan, task, "woken",
sys/compat/linuxkpi/common/src/linux_schedule.c
223
sleepq_release(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
250
void *wchan;
sys/compat/linuxkpi/common/src/linux_schedule.c
252
wchan = wq->private;
sys/compat/linuxkpi/common/src/linux_schedule.c
254
sleepq_lock(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
256
sleepq_signal(wchan, SLEEPQ_SLEEP, 0, 0);
sys/compat/linuxkpi/common/src/linux_schedule.c
257
sleepq_release(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
393
wake_up_sleepers(void *wchan)
sys/compat/linuxkpi/common/src/linux_schedule.c
395
sleepq_lock(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
396
sleepq_signal(wchan, SLEEPQ_SLEEP, 0, 0);
sys/compat/linuxkpi/common/src/linux_schedule.c
397
sleepq_release(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
414
void *wchan;
sys/compat/linuxkpi/common/src/linux_schedule.c
418
wchan = bit_to_wchan(word, bit);
sys/compat/linuxkpi/common/src/linux_schedule.c
420
sleepq_lock(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
422
sleepq_release(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
427
ret = linux_add_to_sleepqueue(wchan, task, "wbit", timeout,
sys/compat/linuxkpi/common/src/linux_schedule.c
448
void *wchan;
sys/compat/linuxkpi/common/src/linux_schedule.c
452
wchan = a;
sys/compat/linuxkpi/common/src/linux_schedule.c
454
sleepq_lock(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
456
sleepq_release(wchan);
sys/compat/linuxkpi/common/src/linux_schedule.c
461
ret = linux_add_to_sleepqueue(wchan, task, "watomic", 0, state);
sys/compat/linuxkpi/common/src/linux_schedule.c
59
linux_add_to_sleepqueue(void *wchan, struct task_struct *task,
sys/compat/linuxkpi/common/src/linux_schedule.c
70
sleepq_add(wchan, NULL, wmesg, flags, 0);
sys/compat/linuxkpi/common/src/linux_schedule.c
72
sleepq_set_timeout(wchan, stimeout);
sys/compat/linuxkpi/common/src/linux_schedule.c
77
ret = -sleepq_wait_sig(wchan, 0);
sys/compat/linuxkpi/common/src/linux_schedule.c
79
ret = -sleepq_timedwait_sig(wchan, 0);
sys/compat/linuxkpi/common/src/linux_schedule.c
82
sleepq_wait(wchan, 0);
sys/compat/linuxkpi/common/src/linux_schedule.c
85
ret = -sleepq_timedwait(wchan, 0);
sys/ddb/db_ps.c
264
const void *wchan;
sys/ddb/db_ps.c
306
wchan = td->td_blocked;
sys/ddb/db_ps.c
309
wchan = td->td_wchan;
sys/ddb/db_ps.c
313
wchan = NULL;
sys/ddb/db_ps.c
316
wchan = NULL;
sys/ddb/db_ps.c
319
if (wchan == NULL)
sys/ddb/db_ps.c
326
db_printf("%p ", wchan);
sys/dev/ppbus/ppb_base.c
244
ppb_sleep(device_t bus, void *wchan, int priority, const char *wmesg, int timo)
sys/dev/ppbus/ppb_base.c
248
return (mtx_sleep(wchan, ppb->ppc_lock, priority, wmesg, timo));
sys/dev/sound/midi/midi.c
170
if (m->wchan) {
sys/dev/sound/midi/midi.c
171
wakeup(&m->wchan);
sys/dev/sound/midi/midi.c
172
m->wchan = 0;
sys/dev/sound/midi/midi.c
247
if (m->wchan) {
sys/dev/sound/midi/midi.c
248
wakeup(&m->wchan);
sys/dev/sound/midi/midi.c
249
m->wchan = 0;
sys/dev/sound/midi/midi.c
288
m->wchan = 0;
sys/dev/sound/midi/midi.c
438
m->wchan = 1;
sys/dev/sound/midi/midi.c
439
retval = msleep(&m->wchan, &m->lock,
sys/dev/sound/midi/midi.c
452
m->wchan = 0;
sys/dev/sound/midi/midi.c
72
int rchan, wchan;
sys/kern/kern_clock.c
205
const void *wchan;
sys/kern/kern_clock.c
216
wchan = td->td_wchan;
sys/kern/kern_clock.c
218
slptype = sleepq_type(wchan);
sys/kern/kern_synch.c
393
void *wchan;
sys/kern/kern_synch.c
420
wchan = bc;
sys/kern/kern_synch.c
421
sleepq_lock(wchan);
sys/kern/kern_synch.c
429
sleepq_release(wchan);
sys/kern/kern_synch.c
436
sleepq_add(wchan, NULL, wmesg, catch ? SLEEPQ_INTERRUPTIBLE : 0, 0);
sys/kern/kern_synch.c
438
ret = sleepq_wait_sig(wchan, prio);
sys/kern/kern_synch.c
440
sleepq_wait(wchan, prio);
sys/kern/subr_sleepqueue.c
1035
const void *wchan;
sys/kern/subr_sleepqueue.c
1052
wchan = td->td_wchan;
sys/kern/subr_sleepqueue.c
1053
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
1055
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
1077
sleepq_remove(struct thread *td, const void *wchan)
sys/kern/subr_sleepqueue.c
1087
MPASS(wchan != NULL);
sys/kern/subr_sleepqueue.c
1088
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
1096
if (!TD_ON_SLEEPQ(td) || td->td_wchan != wchan) {
sys/kern/subr_sleepqueue.c
1102
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
1104
MPASS(td->td_wchan == wchan);
sys/kern/subr_sleepqueue.c
1118
const void *wchan;
sys/kern/subr_sleepqueue.c
1148
wchan = td->td_wchan;
sys/kern/subr_sleepqueue.c
1149
MPASS(wchan != NULL);
sys/kern/subr_sleepqueue.c
1150
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
1185
sleepq_sbuf_print_stacks(struct sbuf *sb, const void *wchan, int queue,
sys/kern/subr_sleepqueue.c
1198
KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
sys/kern/subr_sleepqueue.c
1230
sleepq_lock(wchan);
sys/kern/subr_sleepqueue.c
1231
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
1236
sleepq_release(wchan);
sys/kern/subr_sleepqueue.c
1257
sleepq_release(wchan);
sys/kern/subr_sleepqueue.c
1273
sleepq_release(wchan);
sys/kern/subr_sleepqueue.c
1452
void *wchan;
sys/kern/subr_sleepqueue.c
1462
wchan = (void *)addr;
sys/kern/subr_sleepqueue.c
1463
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
1465
if (sq->sq_wchan == wchan)
sys/kern/subr_sleepqueue.c
165
static int sleepq_catch_signals(const void *wchan, int pri);
sys/kern/subr_sleepqueue.c
175
static void sleepq_switch(const void *wchan, int pri);
sys/kern/subr_sleepqueue.c
260
sleepq_lock(const void *wchan)
sys/kern/subr_sleepqueue.c
264
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
274
sleepq_lookup(const void *wchan)
sys/kern/subr_sleepqueue.c
279
KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
sys/kern/subr_sleepqueue.c
280
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
283
if (sq->sq_wchan == wchan)
sys/kern/subr_sleepqueue.c
292
sleepq_release(const void *wchan)
sys/kern/subr_sleepqueue.c
296
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
307
sleepq_add(const void *wchan, struct lock_object *lock, const char *wmesg,
sys/kern/subr_sleepqueue.c
315
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
318
MPASS(wchan != NULL);
sys/kern/subr_sleepqueue.c
328
__func__, td, wchan));
sys/kern/subr_sleepqueue.c
332
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
365
sq->sq_wchan = wchan;
sys/kern/subr_sleepqueue.c
368
MPASS(wchan == sq->sq_wchan);
sys/kern/subr_sleepqueue.c
378
td->td_wchan = wchan;
sys/kern/subr_sleepqueue.c
394
sleepq_set_timeout_sbt(const void *wchan, sbintime_t sbt, sbintime_t pr,
sys/kern/subr_sleepqueue.c
402
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
406
MPASS(wchan != NULL);
sys/kern/subr_sleepqueue.c
423
sleepq_sleepcnt(const void *wchan, int queue)
sys/kern/subr_sleepqueue.c
427
KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
sys/kern/subr_sleepqueue.c
429
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
502
sleepq_catch_signals(const void *wchan, int pri)
sys/kern/subr_sleepqueue.c
509
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
511
MPASS(wchan != NULL);
sys/kern/subr_sleepqueue.c
523
sleepq_switch(wchan, pri);
sys/kern/subr_sleepqueue.c
530
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
546
sleepq_switch(const void *wchan, int pri)
sys/kern/subr_sleepqueue.c
554
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
593
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
652
sleepq_wait(const void *wchan, int pri)
sys/kern/subr_sleepqueue.c
659
sleepq_switch(wchan, pri);
sys/kern/subr_sleepqueue.c
667
sleepq_wait_sig(const void *wchan, int pri)
sys/kern/subr_sleepqueue.c
671
rcatch = sleepq_catch_signals(wchan, pri);
sys/kern/subr_sleepqueue.c
682
sleepq_timedwait(const void *wchan, int pri)
sys/kern/subr_sleepqueue.c
690
sleepq_switch(wchan, pri);
sys/kern/subr_sleepqueue.c
700
sleepq_timedwait_sig(const void *wchan, int pri)
sys/kern/subr_sleepqueue.c
704
rcatch = sleepq_catch_signals(wchan, pri);
sys/kern/subr_sleepqueue.c
719
sleepq_type(const void *wchan)
sys/kern/subr_sleepqueue.c
724
MPASS(wchan != NULL);
sys/kern/subr_sleepqueue.c
726
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
869
const void *wchan;
sys/kern/subr_sleepqueue.c
873
wchan = td->td_wchan;
sys/kern/subr_sleepqueue.c
874
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
876
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
925
sleepq_signal(const void *wchan, int flags, int pri, int queue)
sys/kern/subr_sleepqueue.c
932
CTR2(KTR_PROC, "sleepq_signal(%p, %d)", wchan, flags);
sys/kern/subr_sleepqueue.c
933
KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
sys/kern/subr_sleepqueue.c
935
sq = sleepq_lookup(wchan);
sys/kern/subr_sleepqueue.c
938
sleepq_release(wchan);
sys/kern/subr_sleepqueue.c
951
sc = SC_LOOKUP(wchan);
sys/kern/subr_sleepqueue.c
988
sleepq_broadcast(const void *wchan, int flags, int pri, int queue)
sys/kern/subr_sleepqueue.c
992
CTR2(KTR_PROC, "sleepq_broadcast(%p, %d)", wchan, flags);
sys/kern/subr_sleepqueue.c
993
KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
sys/kern/subr_sleepqueue.c
995
sq = sleepq_lookup(wchan);
sys/kern/subr_vmem.c
257
#define VMEM_CONDVAR_INIT(vm, wchan) cv_init(&vm->vm_cv, wchan)
sys/kern/subr_vmem.c
271
#define VMEM_CONDVAR_INIT(vm, wchan) pthread_cond_init(&vm->vm_cv, NULL)
sys/kern/vfs_bio.c
5154
bwait(struct buf *bp, u_char pri, const char *wchan)
sys/kern/vfs_bio.c
5161
msleep(bp, mtxp, pri, wchan, 0);
sys/nlm/nlm_prot_impl.c
333
char *wchan = "nlmrcv";
sys/nlm/nlm_prot_impl.c
544
CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan);
sys/nlm/nlm_prot_impl.c
554
CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan);
sys/sys/sleepqueue.h
100
void sleepq_signal(const void *wchan, int flags, int pri, int queue);
sys/sys/sleepqueue.h
101
void sleepq_set_timeout_sbt(const void *wchan, sbintime_t sbt,
sys/sys/sleepqueue.h
103
#define sleepq_set_timeout(wchan, timo) \
sys/sys/sleepqueue.h
104
sleepq_set_timeout_sbt((wchan), tick_sbt * (timo), 0, C_HARDCLOCK)
sys/sys/sleepqueue.h
105
u_int sleepq_sleepcnt(const void *wchan, int queue);
sys/sys/sleepqueue.h
106
int sleepq_timedwait(const void *wchan, int pri);
sys/sys/sleepqueue.h
107
int sleepq_timedwait_sig(const void *wchan, int pri);
sys/sys/sleepqueue.h
108
int sleepq_type(const void *wchan);
sys/sys/sleepqueue.h
109
void sleepq_wait(const void *wchan, int pri);
sys/sys/sleepqueue.h
110
int sleepq_wait_sig(const void *wchan, int pri);
sys/sys/sleepqueue.h
114
int sleepq_sbuf_print_stacks(struct sbuf *sb, const void *wchan, int queue,
sys/sys/sleepqueue.h
87
void sleepq_add(const void *wchan, struct lock_object *lock,
sys/sys/sleepqueue.h
90
void sleepq_broadcast(const void *wchan, int flags, int pri, int queue);
sys/sys/sleepqueue.h
93
void sleepq_lock(const void *wchan);
sys/sys/sleepqueue.h
94
struct sleepqueue *sleepq_lookup(const void *wchan);
sys/sys/sleepqueue.h
95
void sleepq_release(const void *wchan);
sys/sys/sleepqueue.h
96
void sleepq_remove(struct thread *td, const void *wchan);
sys/vm/vm_object.h
259
#define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \
sys/vm/vm_object.h
260
rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo))