/freebsd/sys/sys/ |
H A D | sleepqueue.h | 90 void sleepq_add(const void *wchan, struct lock_object *lock, 93 void sleepq_broadcast(const void *wchan, int flags, int pri, int queue); 96 void sleepq_lock(const void *wchan); 97 struct sleepqueue *sleepq_lookup(const void *wchan); 98 void sleepq_release(const void *wchan); 99 void sleepq_remove(struct thread *td, const void *wchan); 103 void sleepq_signal(const void *wchan, int flags, int pri, int queue); 104 void sleepq_set_timeout_sbt(const void *wchan, sbintime_t sbt, 106 #define sleepq_set_timeout(wchan, timo) \ argument 107 sleepq_set_timeout_sbt((wchan), tick_sb [all...] |
/freebsd/lib/libthr/thread/ |
H A D | thr_sleepq.c | 34 #define SC_HASH(wchan) ((unsigned) \ argument 35 ((((uintptr_t)(wchan) >> 3) \ 36 ^ ((uintptr_t)(wchan) >> (HASHSHIFT + 3))) \ 78 _sleepq_lock(void *wchan) in _sleepq_lock() argument 83 sc = SC_LOOKUP(wchan); in _sleepq_lock() 88 _sleepq_unlock(void *wchan) in _sleepq_unlock() argument 93 sc = SC_LOOKUP(wchan); in _sleepq_unlock() 98 lookup(struct sleepqueue_chain *sc, void *wchan) in lookup() argument 103 if (sq->sq_wchan == wchan) in lookup() 109 _sleepq_lookup(void *wchan) in _sleepq_lookup() argument [all …]
|
H A D | thr_cond.c | 284 if (curthread->wchan != NULL) in cond_wait_user() 323 if (curthread->wchan == NULL) { in cond_wait_user()
|
H A D | thr_private.h | 547 void *wchan; member
|
/freebsd/sys/kern/ |
H A D | subr_sleepqueue.c | 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) in sleepq_lock() argument 264 sc = SC_LOOKUP(wchan); in sleepq_lock() 274 sleepq_lookup(const void *wchan) in sleepq_lookup() argument 279 KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__)); in sleepq_lookup() 280 sc = SC_LOOKUP(wchan); in sleepq_lookup() 283 if (sq->sq_wchan == wchan) in sleepq_lookup() 292 sleepq_release(const void *wchan) in sleepq_release() argument 296 sc = SC_LOOKUP(wchan); in sleepq_release() [all …]
|
H A D | kern_synch.c | 397 void *wchan; in _blockcount_wakeup() 424 wchan = bc; in _blockcount_sleep() 425 sleepq_lock(wchan); in _blockcount_sleep() 433 sleepq_release(wchan); in _blockcount_sleep() 440 sleepq_add(wchan, NULL, wmesg, catch ? SLEEPQ_INTERRUPTIBLE : 0, 0); in _blockcount_sleep() 442 ret = sleepq_wait_sig(wchan, prio); in _blockcount_sleep() 444 sleepq_wait(wchan, prio); in _blockcount_sleep() 413 void *wchan; _blockcount_sleep() local
|
H A D | kern_clock.c | 205 const void *wchan; in deadlres_td_sleep_q() local 216 wchan = td->td_wchan; in deadlres_td_sleep_q() 218 slptype = sleepq_type(wchan); in deadlres_td_sleep_q()
|
H A D | subr_vmem.c | 197 #define VMEM_CONDVAR_INIT(vm, wchan) cv_init(&vm->vm_cv, wchan) argument
|
H A D | vfs_bio.c | 5148 bwait(struct buf *bp, u_char pri, const char *wchan) in bwait() argument 5155 msleep(bp, mtxp, pri, wchan, 0); in bwait()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_schedule.c | 42 linux_add_to_sleepqueue(void *wchan, struct task_struct *task, in linux_add_to_sleepqueue() argument 52 sleepq_add(wchan, NULL, wmesg, flags, 0); in linux_add_to_sleepqueue() 54 sleepq_set_timeout(wchan, timeout); in linux_add_to_sleepqueue() 59 ret = -sleepq_wait_sig(wchan, 0); in linux_add_to_sleepqueue() 61 ret = -sleepq_timedwait_sig(wchan, 0); in linux_add_to_sleepqueue() 64 sleepq_wait(wchan, 0); in linux_add_to_sleepqueue() 67 ret = -sleepq_timedwait(wchan, 0); in linux_add_to_sleepqueue() 329 wake_up_sleepers(void *wchan) in linux_schedule_timeout() 331 sleepq_lock(wchan); in linux_schedule_timeout() 332 sleepq_signal(wchan, SLEEPQ_SLEE in linux_schedule_timeout() 337 wake_up_sleepers(void * wchan) wake_up_sleepers() argument 362 void *wchan; linux_wait_on_bit_timeout() local 402 void *wchan; linux_wait_on_atomic_t() local [all...] |
/freebsd/sys/ddb/ |
H A D | db_ps.c | 98 * pid ppid pgrp uid state wmesg wchan cmd 99 * <pid> <ppi> <pgi> <uid> <stat> <wmesg> <wchan > <name> 101 * <tid > <stat> <wmesg> <wchan > <name> 103 * For machines with 64-bit pointers, we expand the wchan field 8 more 115 db_printf(" pid ppid pgrp uid state wmesg wchan cmd\n"); in db_ps() 117 db_printf(" pid ppid pgrp uid state wmesg wchan cmd\n"); in db_ps() 264 const void *wchan; in dumpthread() 306 wchan = td->td_blocked; in dumpthread() 309 wchan = td->td_wchan; in dumpthread() 313 wchan in dumpthread() 266 const void *wchan; dumpthread() local [all...] |
/freebsd/sys/dev/sound/midi/ |
H A D | midi.c | 107 int rchan, wchan; member 420 if (!(m->rchan || m->wchan)) in midi_uninit() 427 if (m->wchan) { in midi_uninit() 428 wakeup(&m->wchan); in midi_uninit() 429 m->wchan = 0; in midi_uninit() 615 if (m->wchan) { in midi_out() 616 wakeup(&m->wchan); in midi_out() 617 m->wchan = 0; in midi_out() 668 m->wchan = 0; in midi_open() 841 m->wchan = 1; in midi_write() [all …]
|
/freebsd/sys/dev/ppbus/ |
H A D | ppb_base.c | 244 ppb_sleep(device_t bus, void *wchan, int priority, const char *wmesg, int timo) in ppb_sleep() argument 248 return (mtx_sleep(wchan, ppb->ppc_lock, priority, wmesg, timo)); in ppb_sleep()
|
/freebsd/contrib/netbsd-tests/bin/ps/ |
H A D | t_ps.sh | 96 l_keywords='uid pid ppid cpu pri nice vsz rss wchan state tt time command' 97 s_keywords='uid pid ppid cpu lid nlwp pri nice vsz rss wchan lstate tt ltime command'
|
H A D | keywords | 122 wchan WCHAN LJUST
|
/freebsd/tools/test/stress2/tools/ |
H A D | ps.sh | 45 ps -ax -Oppid,wchan | grep -vw Z > $log
|
/freebsd/sys/vm/ |
H A D | vm_object.h | 258 #define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \ argument 259 rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo))
|
/freebsd/bin/ps/ |
H A D | extern.h | 90 char *wchan(KINFO *, VARENT *);
|
H A D | keyword.c | 224 {"wchan", "WCHAN", NULL, "wait-channel", LJUST, wchan, 0, CHAR, NULL,
|
H A D | print.c | 441 wchan(KINFO *k, VARENT *ve __unused) in wchan() function
|
/freebsd/sys/nlm/ |
H A D | nlm_prot_impl.c | 333 char *wchan = "nlmrcv"; in nlm_get_rpc() local 544 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan); in nlm_get_rpc() 554 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan); in nlm_get_rpc()
|
/freebsd/tools/debugscripts/ |
H A D | gdbinit.i386 | 303 printf " pid proc uid ppid pgrp flag stat comm wchan\n"
|