Searched refs:wchan (Results 1 - 21 of 21) sorted by relevance

/freebsd-9.3-release/sys/sys/
H A Dsleepqueue.h98 void sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg,
101 int sleepq_broadcast(void *wchan, int flags, int pri, int queue);
103 void sleepq_lock(void *wchan);
104 struct sleepqueue *sleepq_lookup(void *wchan);
105 void sleepq_release(void *wchan);
106 void sleepq_remove(struct thread *td, void *wchan);
107 int sleepq_signal(void *wchan, int flags, int pri, int queue);
108 void sleepq_set_timeout(void *wchan, int timo);
109 u_int sleepq_sleepcnt(void *wchan, int queue);
110 int sleepq_timedwait(void *wchan, in
[all...]
H A Dbio.h137 int biowait(struct bio *bp, const char *wchan);
/freebsd-9.3-release/lib/libthr/thread/
H A Dthr_sleepq.c34 #define SC_HASH(wchan) ((unsigned) \
35 ((((uintptr_t)(wchan) >> 3) \
36 ^ ((uintptr_t)(wchan) >> (HASHSHIFT + 3))) \
77 _sleepq_lock(void *wchan) argument
82 sc = SC_LOOKUP(wchan);
87 _sleepq_unlock(void *wchan) argument
92 sc = SC_LOOKUP(wchan);
97 _sleepq_lookup(void *wchan) argument
102 sc = SC_LOOKUP(wchan);
104 if (sq->sq_wchan == wchan)
110 _sleepq_add(void *wchan, struct pthread *td) argument
[all...]
H A Dthr_cond.c221 if (curthread->wchan != NULL)
250 if (curthread->wchan == NULL) {
H A Dthr_private.h514 void *wchan; member in struct:pthread
/freebsd-9.3-release/sys/kern/
H A Dsubr_sleepqueue.c156 static int sleepq_catch_signals(void *wchan, int pri);
165 static void sleepq_switch(void *wchan, int pri);
234 sleepq_lock(void *wchan) argument
238 sc = SC_LOOKUP(wchan);
248 sleepq_lookup(void *wchan) argument
253 KASSERT(wchan != NULL, ("%s: invalid NULL wait channel", __func__));
254 sc = SC_LOOKUP(wchan);
257 if (sq->sq_wchan == wchan)
266 sleepq_release(void *wchan) argument
270 sc = SC_LOOKUP(wchan);
281 sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, int flags, int queue) argument
360 sleepq_set_timeout(void *wchan, int timo) argument
378 sleepq_sleepcnt(void *wchan, int queue) argument
397 sleepq_catch_signals(void *wchan, int pri) argument
490 sleepq_switch(void *wchan, int pri) argument
611 sleepq_wait(void *wchan, int pri) argument
627 sleepq_wait_sig(void *wchan, int pri) argument
645 sleepq_timedwait(void *wchan, int pri) argument
665 sleepq_timedwait_sig(void *wchan, int pri) argument
684 sleepq_type(void *wchan) argument
809 sleepq_signal(void *wchan, int flags, int pri, int queue) argument
846 sleepq_broadcast(void *wchan, int flags, int pri, int queue) argument
882 void *wchan; local
947 sleepq_remove(struct thread *td, void *wchan) argument
989 void *wchan; local
1178 void *wchan; local
[all...]
H A Dkern_clock.c189 void *wchan; local
260 wchan = td->td_wchan;
263 slptype = sleepq_type(wchan);
H A Dvfs_bio.c3679 biowait(struct bio *bp, const char *wchan) argument
3686 msleep(bp, mtxp, PRIBIO, wchan, hz / 10);
4434 bwait(struct buf *bp, u_char pri, const char *wchan) argument
4441 msleep(bp, mtxp, pri, wchan, 0);
/freebsd-9.3-release/contrib/amd/amd/
H A Dsched.c63 wchan_t wchan; /* Wait channel */ member in struct:pjob
126 p->wchan = (wchan_t) p;
157 sched_task(cb_fun *cf, opaque_t ca, wchan_t wchan) argument
164 dlog("SLEEP on %p", wchan);
165 p->wchan = wchan;
181 wakeup(wchan_t wchan) argument
195 if (p->wchan == wchan) {
203 wakeup_task(int rc, int term, wchan_t wchan) argument
[all...]
H A Dops_nfs.c112 static int call_mountd(fh_cache *fp, u_long proc, fwd_fun f, wchan_t wchan);
113 static int webnfs_lookup(fh_cache *fp, fwd_fun f, wchan_t wchan);
527 call_mountd(fh_cache *fp, u_long proc, fwd_fun fun, wchan_t wchan) argument
543 error = get_mountd_port(fp->fh_fs, &mountd_port, wchan);
596 webnfs_lookup(fh_cache *fp, fwd_fun fun, wchan_t wchan) argument
H A Dsrvr_nfs.c311 get_mountd_port(fserver *fs, u_short *port, wchan_t wchan) argument
337 if (error < 0 && wchan && !(fs->fs_flags & FSF_WANT)) {
348 sched_task(wakeup_task, wchan, (wchan_t) fs);
H A Dmap.c823 wchan_t wchan = get_mntfs_wchan(mf); local
873 wakeup(wchan);
/freebsd-9.3-release/sys/ofed/include/linux/
H A Dwait.h42 unsigned int wchan; member in struct:__wait_queue_head
54 c = &q->wchan;
74 void *c = &(q).wchan; \
90 void *c = &(q).wchan; \
/freebsd-9.3-release/sys/ddb/
H A Ddb_ps.c69 * pid ppid pgrp uid state wmesg wchan cmd
70 * <pid> <ppi> <pgi> <uid> <stat> < wmesg > < wchan > <name>
72 * <tid > <stat> < wmesg > < wchan > <name>
74 * For machines with 64-bit pointers, we expand the wchan field 8 more
95 db_printf(" pid ppid pgrp uid state wmesg wchan cmd\n");
97 db_printf(" pid ppid pgrp uid state wmesg wchan cmd\n");
222 void *wchan; local
266 wchan = td->td_blocked;
269 wchan = td->td_wchan;
273 wchan
[all...]
/freebsd-9.3-release/bin/ps/
H A Dextern.h89 char *wchan(KINFO *, VARENT *);
H A Dkeyword.c170 {"wchan", "WCHAN", NULL, LJUST, wchan, 0, CHAR, NULL, 0},
H A Dprint.c482 wchan(KINFO *k, VARENT *ve) function
/freebsd-9.3-release/sys/dev/ppbus/
H A Dppb_base.c237 ppb_sleep(device_t bus, void *wchan, int priority, const char *wmesg, int timo) argument
241 return (mtx_sleep(wchan, ppb->ppc_lock, priority, wmesg, timo));
/freebsd-9.3-release/sys/dev/sound/midi/
H A Dmidi.c113 int rchan, wchan; member in struct:snd_midi
405 if (!(m->rchan || m->wchan))
412 if (m->wchan) {
413 wakeup(&m->wchan);
414 m->wchan = 0;
600 if (m->wchan) {
601 wakeup(&m->wchan);
602 m->wchan = 0;
654 m->wchan = 0;
828 m->wchan
[all...]
/freebsd-9.3-release/sys/nlm/
H A Dnlm_prot_impl.c348 char *wchan = "nlmrcv"; local
539 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan);
549 CLNT_CONTROL(rpcb, CLSET_WAITCHAN, wchan);
/freebsd-9.3-release/sys/dev/isp/
H A Disp_freebsd.c4091 void *wchan; local
4227 ISP_GET_PC_ADDR(isp, chan, target_proc, wchan);
4287 msleep(wchan, &isp->isp_lock, PUSER, "tsnooze", 0);

Completed in 200 milliseconds