Home
last modified time | relevance | path

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

12

/freebsd-11-stable/sys/sys/
HDsleepqueue.h89 void sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg,
92 int sleepq_broadcast(void *wchan, int flags, int pri, int queue);
95 void sleepq_lock(void *wchan);
96 struct sleepqueue *sleepq_lookup(void *wchan);
97 void sleepq_release(void *wchan);
98 void sleepq_remove(struct thread *td, void *wchan);
101 int sleepq_signal(void *wchan, int flags, int pri, int queue);
102 void sleepq_set_timeout_sbt(void *wchan, sbintime_t sbt,
104 #define sleepq_set_timeout(wchan, timo) \ argument
105 sleepq_set_timeout_sbt((wchan), tick_sbt * (timo), 0, C_HARDCLOCK)
[all …]
HDbio.h143 int biowait(struct bio *bp, const char *wchan);
/freebsd-11-stable/sys/kern/
HDsubr_sleepqueue.c158 static int sleepq_catch_signals(void *wchan, int pri);
167 static void sleepq_switch(void *wchan, int pri);
251 sleepq_lock(void *wchan) in sleepq_lock() argument
255 sc = SC_LOOKUP(wchan); in sleepq_lock()
265 sleepq_lookup(void *wchan) in sleepq_lookup() argument
270 KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__)); in sleepq_lookup()
271 sc = SC_LOOKUP(wchan); in sleepq_lookup()
274 if (sq->sq_wchan == wchan) in sleepq_lookup()
283 sleepq_release(void *wchan) in sleepq_release() argument
287 sc = SC_LOOKUP(wchan); in sleepq_release()
[all …]
HDkern_clock.c188 void *wchan; in deadlkres() local
253 wchan = td->td_wchan; in deadlkres()
256 slptype = sleepq_type(wchan); in deadlkres()
HDsubr_vmem.c188 #define VMEM_CONDVAR_INIT(vm, wchan) cv_init(&vm->vm_cv, wchan) argument
/freebsd-11-stable/lib/libthr/thread/
HDthr_sleepq.c35 #define SC_HASH(wchan) ((unsigned) \ argument
36 ((((uintptr_t)(wchan) >> 3) \
37 ^ ((uintptr_t)(wchan) >> (HASHSHIFT + 3))) \
79 _sleepq_lock(void *wchan) in _sleepq_lock() argument
84 sc = SC_LOOKUP(wchan); in _sleepq_lock()
89 _sleepq_unlock(void *wchan) in _sleepq_unlock() argument
94 sc = SC_LOOKUP(wchan); in _sleepq_unlock()
99 lookup(struct sleepqueue_chain *sc, void *wchan) in lookup() argument
104 if (sq->sq_wchan == wchan) in lookup()
110 _sleepq_lookup(void *wchan) in _sleepq_lookup() argument
[all …]
HDthr_cond.c271 if (curthread->wchan != NULL) in cond_wait_user()
310 if (curthread->wchan == NULL) { in cond_wait_user()
HDthr_private.h547 void *wchan; member
/freebsd-11-stable/sys/compat/linuxkpi/common/src/
HDlinux_schedule.c45 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-11-stable/contrib/amd/amd/
HDsched.c59 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()
HDops_nfs.c108 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
HDsrvr_nfs.c311 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()
HDmap.c840 wchan_t wchan = get_mntfs_wchan(mf); in free_map_if_success() local
897 wakeup(wchan); in free_map_if_success()
/freebsd-11-stable/sys/ddb/
HDdb_ps.c254 void *wchan; in dumpthread() local
298 wchan = td->td_blocked; in dumpthread()
301 wchan = td->td_wchan; in dumpthread()
305 wchan = NULL; in dumpthread()
308 wchan = NULL; in dumpthread()
311 if (wchan == NULL) in dumpthread()
318 db_printf("%p ", wchan); in dumpthread()
/freebsd-11-stable/sys/dev/sound/midi/
HDmidi.c112 int rchan, wchan; member
408 if (!(m->rchan || m->wchan)) in midi_uninit()
415 if (m->wchan) { in midi_uninit()
416 wakeup(&m->wchan); in midi_uninit()
417 m->wchan = 0; in midi_uninit()
605 if (m->wchan) { in midi_out()
606 wakeup(&m->wchan); in midi_out()
607 m->wchan = 0; in midi_out()
659 m->wchan = 0; in midi_open()
833 m->wchan = 1; in midi_write()
[all …]
/freebsd-11-stable/sys/dev/ppbus/
HDppb_base.c237 ppb_sleep(device_t bus, void *wchan, int priority, const char *wmesg, int timo) in ppb_sleep() argument
241 return (mtx_sleep(wchan, ppb->ppc_lock, priority, wmesg, timo)); in ppb_sleep()
/freebsd-11-stable/contrib/netbsd-tests/bin/ps/
HDt_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'
HDkeywords122 wchan WCHAN LJUST
/freebsd-11-stable/sys/vm/
HDvm_object.h247 #define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \ argument
248 rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo))
/freebsd-11-stable/bin/ps/
HDextern.h90 char *wchan(KINFO *, VARENT *);
HDkeyword.c232 {"wchan", "WCHAN", NULL, "wait-channel", LJUST, wchan, 0, CHAR, NULL,
HDprint.c451 wchan(KINFO *k, VARENT *ve __unused) in wchan() function
/freebsd-11-stable/sys/nlm/
HDnlm_prot_impl.c348 char *wchan = "nlmrcv"; in nlm_get_rpc() local
539 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan); in nlm_get_rpc()
549 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan); in nlm_get_rpc()
/freebsd-11-stable/tools/debugscripts/
HDgdbinit.i386304 printf " pid proc uid ppid pgrp flag stat comm wchan\n"
HDgdbinit.kernel202 printf " pid proc uid ppid pgrp flag stat comm wchan\n"

12