| /freebsd-12-stable/sys/sys/ |
| D | sleepqueue.h | 91 void sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, 94 int sleepq_broadcast(void *wchan, int flags, int pri, int queue); 97 void sleepq_lock(void *wchan); 98 struct sleepqueue *sleepq_lookup(void *wchan); 99 void sleepq_release(void *wchan); 100 void sleepq_remove(struct thread *td, void *wchan); 103 int sleepq_signal(void *wchan, int flags, int pri, int queue); 104 void sleepq_set_timeout_sbt(void *wchan, sbintime_t sbt, 106 #define sleepq_set_timeout(wchan, timo) \ argument 107 sleepq_set_timeout_sbt((wchan), tick_sbt * (timo), 0, C_HARDCLOCK) [all …]
|
| /freebsd-12-stable/lib/libthr/thread/ |
| D | thr_sleepq.c | 37 #define SC_HASH(wchan) ((unsigned) \ argument 38 ((((uintptr_t)(wchan) >> 3) \ 39 ^ ((uintptr_t)(wchan) >> (HASHSHIFT + 3))) \ 81 _sleepq_lock(void *wchan) in _sleepq_lock() argument 86 sc = SC_LOOKUP(wchan); in _sleepq_lock() 91 _sleepq_unlock(void *wchan) in _sleepq_unlock() argument 96 sc = SC_LOOKUP(wchan); in _sleepq_unlock() 101 lookup(struct sleepqueue_chain *sc, void *wchan) in lookup() argument 106 if (sq->sq_wchan == wchan) in lookup() 112 _sleepq_lookup(void *wchan) in _sleepq_lookup() argument [all …]
|
| D | thr_cond.c | 286 if (curthread->wchan != NULL) in cond_wait_user() 325 if (curthread->wchan == NULL) { in cond_wait_user()
|
| D | thr_private.h | 549 void *wchan; member
|
| /freebsd-12-stable/sys/kern/ |
| D | subr_sleepqueue.c | 163 static int sleepq_catch_signals(void *wchan, int pri); 172 static void sleepq_switch(void *wchan, int pri); 256 sleepq_lock(void *wchan) in sleepq_lock() argument 260 sc = SC_LOOKUP(wchan); in sleepq_lock() 270 sleepq_lookup(void *wchan) in sleepq_lookup() argument 275 KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__)); in sleepq_lookup() 276 sc = SC_LOOKUP(wchan); in sleepq_lookup() 279 if (sq->sq_wchan == wchan) in sleepq_lookup() 288 sleepq_release(void *wchan) in sleepq_release() argument 292 sc = SC_LOOKUP(wchan); in sleepq_release() [all …]
|
| D | kern_clock.c | 215 void *wchan; in deadlres_td_sleep_q() local 226 wchan = td->td_wchan; in deadlres_td_sleep_q() 228 slptype = sleepq_type(wchan); in deadlres_td_sleep_q()
|
| D | subr_vmem.c | 201 #define VMEM_CONDVAR_INIT(vm, wchan) cv_init(&vm->vm_cv, wchan) argument
|
| D | vfs_bio.c | 4973 bwait(struct buf *bp, u_char pri, const char *wchan) in bwait() argument 4980 msleep(bp, mtxp, pri, wchan, 0); in bwait()
|
| /freebsd-12-stable/sys/compat/linuxkpi/common/src/ |
| D | linux_schedule.c | 45 linux_add_to_sleepqueue(void *wchan, struct task_struct *task, in linux_add_to_sleepqueue() argument 55 sleepq_add(wchan, NULL, wmesg, flags, 0); in linux_add_to_sleepqueue() 57 sleepq_set_timeout(wchan, timeout); in linux_add_to_sleepqueue() 62 ret = -sleepq_wait_sig(wchan, 0); in linux_add_to_sleepqueue() 64 ret = -sleepq_timedwait_sig(wchan, 0); in linux_add_to_sleepqueue() 67 sleepq_wait(wchan, 0); in linux_add_to_sleepqueue() 70 ret = -sleepq_timedwait(wchan, 0); in linux_add_to_sleepqueue() 340 wake_up_sleepers(void *wchan) in wake_up_sleepers() argument 344 sleepq_lock(wchan); in wake_up_sleepers() 345 wakeup_swapper = sleepq_signal(wchan, SLEEPQ_SLEEP, 0, 0); in wake_up_sleepers() [all …]
|
| /freebsd-12-stable/contrib/amd/amd/ |
| D | sched.c | 59 wchan_t wchan; /* Wait channel */ member 122 p->wchan = (wchan_t) p; in run_task() 153 sched_task(cb_fun *cf, opaque_t ca, wchan_t wchan) in sched_task() argument 160 dlog("SLEEP on %p", wchan); in sched_task() 161 p->wchan = wchan; in sched_task() 177 wakeup(wchan_t wchan) in wakeup() argument 191 if (p->wchan == wchan) { in wakeup() 199 wakeup_task(int rc, int term, wchan_t wchan) in wakeup_task() argument 201 wakeup(wchan); in wakeup_task()
|
| D | ops_nfs.c | 108 static int call_mountd(fh_cache *fp, u_long proc, fwd_fun f, wchan_t wchan); 109 static int webnfs_lookup(fh_cache *fp, fwd_fun f, wchan_t wchan); 533 call_mountd(fh_cache *fp, u_long proc, fwd_fun fun, wchan_t wchan) in call_mountd() argument 549 error = get_mountd_port(fp->fh_fs, &mountd_port, wchan); in call_mountd() 604 webnfs_lookup(fh_cache *fp, fwd_fun fun, wchan_t wchan) in webnfs_lookup() argument
|
| D | srvr_nfs.c | 311 get_mountd_port(fserver *fs, u_short *port, wchan_t wchan) in get_mountd_port() argument 346 if (error < 0 && wchan && !(fs->fs_flags & FSF_WANT)) { in get_mountd_port() 357 sched_task(wakeup_task, wchan, (wchan_t) fs); in get_mountd_port()
|
| D | map.c | 840 wchan_t wchan = get_mntfs_wchan(mf); in free_map_if_success() local 897 wakeup(wchan); in free_map_if_success()
|
| /freebsd-12-stable/sys/ddb/ |
| D | db_ps.c | 257 void *wchan; in dumpthread() local 301 wchan = td->td_blocked; in dumpthread() 304 wchan = td->td_wchan; in dumpthread() 308 wchan = NULL; in dumpthread() 311 wchan = NULL; in dumpthread() 314 if (wchan == NULL) in dumpthread() 321 db_printf("%p ", wchan); in dumpthread()
|
| /freebsd-12-stable/sys/dev/sound/midi/ |
| D | midi.c | 114 int rchan, wchan; member 410 if (!(m->rchan || m->wchan)) in midi_uninit() 417 if (m->wchan) { in midi_uninit() 418 wakeup(&m->wchan); in midi_uninit() 419 m->wchan = 0; in midi_uninit() 607 if (m->wchan) { in midi_out() 608 wakeup(&m->wchan); in midi_out() 609 m->wchan = 0; in midi_out() 661 m->wchan = 0; in midi_open() 835 m->wchan = 1; in midi_write() [all …]
|
| /freebsd-12-stable/sys/dev/ppbus/ |
| D | ppb_base.c | 247 ppb_sleep(device_t bus, void *wchan, int priority, const char *wmesg, int timo) in ppb_sleep() argument 251 return (mtx_sleep(wchan, ppb->ppc_lock, priority, wmesg, timo)); in ppb_sleep()
|
| /freebsd-12-stable/contrib/netbsd-tests/bin/ps/ |
| 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'
|
| D | keywords | 122 wchan WCHAN LJUST
|
| /freebsd-12-stable/sys/vm/ |
| 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-12-stable/bin/ps/ |
| D | extern.h | 93 char *wchan(KINFO *, VARENT *);
|
| D | keyword.c | 233 {"wchan", "WCHAN", NULL, "wait-channel", LJUST, wchan, 0, CHAR, NULL,
|
| D | print.c | 453 wchan(KINFO *k, VARENT *ve __unused) in wchan() function
|
| /freebsd-12-stable/sys/nlm/ |
| D | nlm_prot_impl.c | 337 char *wchan = "nlmrcv"; in nlm_get_rpc() local 524 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan); in nlm_get_rpc() 534 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan); in nlm_get_rpc()
|
| /freebsd-12-stable/tools/debugscripts/ |
| D | gdbinit.i386 | 304 printf " pid proc uid ppid pgrp flag stat comm wchan\n"
|
| D | gdbinit.kernel | 202 printf " pid proc uid ppid pgrp flag stat comm wchan\n"
|