Home
last modified time | relevance | path

Searched refs:wchan (Results 1 – 22 of 22) sorted by relevance

/freebsd/sys/sys/
H A Dsleepqueue.h96 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);
106 #define sleepq_set_timeout(wchan, timo) \ argument
108 u_int sleepq_sleepcnt(const void *wchan, int queue);
109 int sleepq_timedwait(const void *wchan, int pri);
110 int sleepq_timedwait_sig(const void *wchan, int pri);
111 int sleepq_type(const void *wchan);
112 void sleepq_wait(const void *wchan, int pri);
[all …]
/freebsd/lib/libthr/thread/
H A Dthr_sleepq.c78 _sleepq_lock(void *wchan) in _sleepq_lock() argument
83 sc = SC_LOOKUP(wchan); in _sleepq_lock()
93 sc = SC_LOOKUP(wchan); in _sleepq_unlock()
111 return (lookup(SC_LOOKUP(wchan), wchan)); in _sleepq_lookup()
120 sc = SC_LOOKUP(wchan); in _sleepq_add()
121 sq = lookup(sc, wchan); in _sleepq_add()
127 sq->sq_wchan = wchan; in _sleepq_add()
131 td->wchan = wchan; in _sleepq_add()
153 td->wchan = NULL; in _sleepq_remove()
172 td->wchan = NULL; in _sleepq_drop()
[all …]
H A Dthr_cond.c284 if (curthread->wchan != NULL) in cond_wait_user()
323 if (curthread->wchan == NULL) { in cond_wait_user()
H A Dthr_private.h547 void *wchan; member
/freebsd/sys/kern/
H A Dsubr_sleepqueue.c264 sc = SC_LOOKUP(wchan); in sleepq_lock()
280 sc = SC_LOOKUP(wchan); in sleepq_lookup()
318 MPASS(wchan != NULL); in sleepq_add()
378 td->td_wchan = wchan; in sleepq_add()
406 MPASS(wchan != NULL); in sleepq_set_timeout_sbt()
511 MPASS(wchan != NULL); in sleepq_catch_signals()
870 const void *wchan; in sleepq_remove_nested() local
1043 const void *wchan; in sleepq_timeout() local
1132 const void *wchan; in sleepq_abort() local
1250 sleepq_lock(wchan); in sleepq_sbuf_print_stacks()
[all …]
H A Dkern_synch.c413 void *wchan; in _blockcount_sleep() local
440 wchan = bc; in _blockcount_sleep()
441 sleepq_lock(wchan); in _blockcount_sleep()
449 sleepq_release(wchan); in _blockcount_sleep()
456 sleepq_add(wchan, NULL, wmesg, catch ? SLEEPQ_INTERRUPTIBLE : 0, 0); in _blockcount_sleep()
458 ret = sleepq_wait_sig(wchan, prio); in _blockcount_sleep()
460 sleepq_wait(wchan, prio); in _blockcount_sleep()
H A Dkern_clock.c205 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 Dsubr_vmem.c197 #define VMEM_CONDVAR_INIT(vm, wchan) cv_init(&vm->vm_cv, wchan) argument
H A Dvfs_bio.c5143 bwait(struct buf *bp, u_char pri, const char *wchan) in bwait() argument
5150 msleep(bp, mtxp, pri, wchan, 0); in bwait()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_schedule.c64 sleepq_wait(wchan, 0); in linux_add_to_sleepqueue()
337 wake_up_sleepers(void *wchan) in wake_up_sleepers() argument
341 sleepq_lock(wchan); in wake_up_sleepers()
343 sleepq_release(wchan); in wake_up_sleepers()
362 void *wchan; in linux_wait_on_bit_timeout() local
374 sleepq_lock(wchan); in linux_wait_on_bit_timeout()
376 sleepq_release(wchan); in linux_wait_on_bit_timeout()
402 void *wchan; in linux_wait_on_atomic_t() local
406 wchan = a; in linux_wait_on_atomic_t()
408 sleepq_lock(wchan); in linux_wait_on_atomic_t()
[all …]
/freebsd/sys/ddb/
H A Ddb_ps.c266 const void *wchan; in dumpthread() local
310 wchan = td->td_blocked; in dumpthread()
313 wchan = td->td_wchan; in dumpthread()
317 wchan = NULL; in dumpthread()
320 wchan = NULL; in dumpthread()
323 if (wchan == NULL) in dumpthread()
330 db_printf("%p ", wchan); in dumpthread()
/freebsd/sys/dev/sound/midi/
H A Dmidi.c111 int rchan, wchan; member
413 if (m->wchan) { in midi_uninit()
415 m->wchan = 0; in midi_uninit()
601 if (m->wchan) { in midi_out()
603 m->wchan = 0; in midi_out()
654 m->wchan = 0; in midi_open()
827 m->wchan = 1; in midi_write()
843 m->wchan = 0; in midi_write()
1117 m->wchan = 0; in midisynth_open()
1206 m->wchan = 1; in midisynth_writeraw()
[all …]
/freebsd/sys/dev/ppbus/
H A Dppb_base.c244 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 Dt_ps.sh96 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 Dkeywords122 wchan WCHAN LJUST
/freebsd/tools/test/stress2/tools/
H A Dps.sh45 ps -ax -Oppid,wchan | grep -vw Z > $log
/freebsd/sys/vm/
H A Dvm_object.h252 #define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \ argument
253 rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo))
/freebsd/bin/ps/
H A Dextern.h90 char *wchan(KINFO *, VARENT *);
H A Dkeyword.c225 {"wchan", "WCHAN", NULL, "wait-channel", LJUST, wchan, 0, CHAR, NULL,
H A Dprint.c444 wchan(KINFO *k, VARENT *ve __unused) in wchan() function
/freebsd/sys/nlm/
H A Dnlm_prot_impl.c332 char *wchan = "nlmrcv"; in nlm_get_rpc() local
543 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan); in nlm_get_rpc()
553 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan); in nlm_get_rpc()
/freebsd/tools/debugscripts/
H A Dgdbinit.i386303 printf " pid proc uid ppid pgrp flag stat comm wchan\n"