Home
last modified time | relevance | path

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

12

/freebsd-12-stable/sys/sys/
Dsleepqueue.h91 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/
Dthr_sleepq.c37 #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 …]
Dthr_cond.c286 if (curthread->wchan != NULL) in cond_wait_user()
325 if (curthread->wchan == NULL) { in cond_wait_user()
Dthr_private.h549 void *wchan; member
/freebsd-12-stable/sys/kern/
Dsubr_sleepqueue.c163 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 …]
Dkern_clock.c215 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()
Dsubr_vmem.c201 #define VMEM_CONDVAR_INIT(vm, wchan) cv_init(&vm->vm_cv, wchan) argument
Dvfs_bio.c4973 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/
Dlinux_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-12-stable/contrib/amd/amd/
Dsched.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()
Dops_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
Dsrvr_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()
Dmap.c840 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/
Ddb_ps.c257 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/
Dmidi.c114 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/
Dppb_base.c247 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/
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'
Dkeywords122 wchan WCHAN LJUST
/freebsd-12-stable/sys/vm/
Dvm_object.h258 #define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \ argument
259 rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo))
/freebsd-12-stable/bin/ps/
Dextern.h93 char *wchan(KINFO *, VARENT *);
Dkeyword.c233 {"wchan", "WCHAN", NULL, "wait-channel", LJUST, wchan, 0, CHAR, NULL,
Dprint.c453 wchan(KINFO *k, VARENT *ve __unused) in wchan() function
/freebsd-12-stable/sys/nlm/
Dnlm_prot_impl.c337 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/
Dgdbinit.i386304 printf " pid proc uid ppid pgrp flag stat comm wchan\n"
Dgdbinit.kernel202 printf " pid proc uid ppid pgrp flag stat comm wchan\n"

12