Home
last modified time | relevance | path

Searched refs:wmesg (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/sys/kern/
H A Dkern_condvar.c112 char wmesg[WMESGLEN + 1]; in _cv_wait() local
128 strlcpy(wmesg, cv_wmesg(cvp), sizeof(wmesg)); in _cv_wait()
129 ktrcsw(1, 0, wmesg); in _cv_wait()
131 wmesg[0] = '\0'; in _cv_wait()
157 ktrcsw(0, 0, wmesg); in _cv_wait()
174 char wmesg[WMESGLEN + 1]; in _cv_wait_unlock() local
194 strlcpy(wmesg, cv_wmesg(cvp), sizeof(wmesg)); in _cv_wait_unlock()
195 ktrcsw(1, 0, wmesg); in _cv_wait_unlock()
232 char wmesg[WMESGLEN + 1]; _cv_wait_sig() local
301 char wmesg[WMESGLEN + 1]; _cv_timedwait_sbt() local
371 char wmesg[WMESGLEN + 1]; _cv_timedwait_sig_sbt() local
[all...]
H A Dkern_synch.c132 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags) in _sleep() argument
144 ktrcsw(1, 0, wmesg); in _sleep()
147 "Sleeping on \"%s\"", wmesg); in _sleep()
181 td->td_tid, td->td_proc->p_pid, td->td_name, wmesg, ident); in _sleep()
205 sleepq_add(ident, lock, wmesg, sleepq_flags, 0); in _sleep()
226 ktrcsw(0, 0, wmesg); in _sleep()
238 msleep_spin_sbt(const void *ident, struct mtx *mtx, const char *wmesg, in msleep_spin_sbt() argument
255 td->td_tid, td->td_proc->p_pid, td->td_name, wmesg, ident); in msleep_spin_sbt()
265 sleepq_add(ident, &mtx->lock_object, wmesg, SLEEPQ_SLEEP, 0); in msleep_spin_sbt()
279 ktrcsw(1, 0, wmesg); in msleep_spin_sbt()
313 pause_sbt(const char * wmesg,sbintime_t sbt,sbintime_t pr,int flags) pause_sbt() argument
410 _blockcount_sleep(blockcount_t * bc,struct lock_object * lock,const char * wmesg,int prio) _blockcount_sleep() argument
[all...]
H A Dsubr_sleepqueue.c156 static void sleepq_profile(const char *wmesg);
307 sleepq_add(const void *wchan, struct lock_object *lock, const char *wmesg, in sleepq_add() argument
379 td->td_wmesg = wmesg; in sleepq_add()
1310 sleepq_profile(const char *wmesg) in sleepq_profile() argument
1317 LIST_FOREACH(sp, &sleepq_hash[SC_HASH(wmesg)], sp_link) in sleepq_profile()
1318 if (sp->sp_wmesg == wmesg) in sleepq_profile()
1323 sp->sp_wmesg = wmesg; in sleepq_profile()
1325 LIST_INSERT_HEAD(&sleepq_hash[SC_HASH(wmesg)], sp, sp_link); in sleepq_profile()
H A Dkern_ktrace.c834 ktrcsw(int out, int user, const char *wmesg) in ktrcsw() argument
849 if (wmesg != NULL) in ktrcsw()
850 strlcpy(kc->wmesg, wmesg, sizeof(kc->wmesg)); in ktrcsw()
852 bzero(kc->wmesg, sizeof(kc->wmesg)); in ktrcsw()
H A Dkern_lock.c266 const char *wmesg, int pri, int timo, int queue) in sleeplk() argument
287 sleepq_add(&lk->lock_object, NULL, wmesg, SLEEPQ_LK | (catch ? in sleeplk()
427 lockinit(struct lock *lk, int pri, const char *wmesg, int timo, int flags) in lockinit() argument
433 ("%s: lockmgr not aligned for %s: %p", __func__, wmesg, in lockinit()
453 lock_init(&lk->lock_object, &lock_class_lockmgr, wmesg, NULL, iflags); in lockinit()
1289 const char *wmesg, int pri, int timo, const char *file, int line) in __lockmgr_args() argument
1309 iwmesg = (wmesg == LK_WMESG_DEFAULT) ? lk->lock_object.lo_name : wmesg; in __lockmgr_args()
/freebsd/sys/sys/
H A Dblockcount.h42 int _blockcount_sleep(blockcount_t *bc, struct lock_object *, const char *wmesg,
78 _blockcount_wait(blockcount_t *bc, struct lock_object *lo, const char *wmesg, in _blockcount_wait() argument
83 while (_blockcount_sleep(bc, lo, wmesg, prio) == EAGAIN) in _blockcount_wait()
87 #define blockcount_sleep(bc, lo, wmesg, prio) \ argument
88 _blockcount_sleep((bc), (struct lock_object *)(lo), (wmesg), (prio))
89 #define blockcount_wait(bc, lo, wmesg, prio) \ argument
90 _blockcount_wait((bc), (struct lock_object *)(lo), (wmesg), (prio))
H A Dlockmgr.h71 const char *wmesg, int prio, int timo, const char *file, int line);
88 void lockinit(struct lock *lk, int prio, const char *wmesg, int timo,
101 _lockmgr_args(struct lock *lk, u_int flags, struct mtx *ilk, const char *wmesg, in _lockmgr_args() argument
106 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args()
111 const char *wmesg, int prio, int timo, const char *file, int line) in _lockmgr_args_rw() argument
115 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args_rw()
125 #define lockmgr_args(lk, flags, ilk, wmesg, prio, timo) \ argument
126 _lockmgr_args((lk), (flags), (ilk), (wmesg), (prio), (timo), \
128 #define lockmgr_args_rw(lk, flags, ilk, wmesg, prio, timo) \ argument
129 _lockmgr_args_rw((lk), (flags), (ilk), (wmesg), (prio), (timo), \
H A Dsystm.h463 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags);
464 #define msleep(chan, mtx, pri, wmesg, timo) \ argument
465 _sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \
467 #define msleep_sbt(chan, mtx, pri, wmesg, bt, pr, flags) \ argument
468 _sleep((chan), &(mtx)->lock_object, (pri), (wmesg), (bt), (pr), \
471 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags);
472 #define msleep_spin(chan, mtx, wmesg, timo) \ argument
473 msleep_spin_sbt((chan), (mtx), (wmesg), tick_sbt * (timo), \
475 int pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_t pr,
478 pause(const char *wmesg, int timo) in pause() argument
[all …]
H A Dbuf.h298 #define BUF_LOCKINIT(bp, wmesg) \ argument
299 lockinit(&(bp)->b_lock, PRIBIO + 4, wmesg, 0, LK_NEW)
312 #define BUF_TIMELOCK(bp, locktype, interlock, wmesg, catch, timo) \ argument
314 (interlock), (wmesg), (PRIBIO + 4) | (catch), (timo), \
H A Drmlock.h97 #define rm_sleep(chan, rm, pri, wmesg, timo) \ argument
98 _sleep((chan), &(rm)->lock_object, (pri), (wmesg), \
H A Dsleepqueue.h91 const char *wmesg, int flags, int queue);
H A Drwlock.h241 #define rw_sleep(chan, rw, pri, wmesg, timo) \ argument
242 _sleep((chan), &(rw)->lock_object, (pri), (wmesg), \
H A Dsx.h264 #define sx_sleep(chan, sx, pri, wmesg, timo) \ argument
265 _sleep((chan), &(sx)->lock_object, (pri), (wmesg), \
/freebsd/sys/fs/procfs/
H A Dprocfs_status.c69 const char *wmesg; in procfs_doprocstatus()
119 ("wchan %p has no wmesg", tdfirst->td_wchan)); in procfs_doprocstatus()
120 wmesg = tdfirst->td_wmesg; in procfs_doprocstatus()
122 wmesg = "nochan"; in procfs_doprocstatus()
136 sbuf_printf(sb, " %s", wmesg); in procfs_doprocstatus()
68 const char *wmesg; procfs_doprocstatus() local
/freebsd/sys/ddb/
H A Ddb_ps.c98 * pid ppid pgrp uid state wmesg wchan cmd
99 * <pid> <ppi> <pgi> <uid> <stat> <wmesg> <wchan > <name>
101 * <tid > <stat> <wmesg> <wchan > <name>
115 db_printf(" pid ppid pgrp uid state wmesg wchan cmd\n"); in db_ps()
117 db_printf(" pid ppid pgrp uid state wmesg wchan cmd\n"); in db_ps()
263 const char *wmesg; in dumpthread()
305 wmesg = td->td_lockname; in dumpthread()
308 wmesg = td->td_wmesg; in dumpthread()
312 wmesg = state; in dumpthread()
315 wmesg in dumpthread()
265 const char *wmesg; dumpthread() local
[all...]
/freebsd/sys/dev/qat/include/common/
H A Dqat_freebsd.h45 #define pause_ms(wmesg, ms) pause_sbt(wmesg, (ms)*SBT_1MS, 0, C_HARDCLOCK) argument
/freebsd/sys/dev/hpt27xx/
H A Dos_bsd.h198 static __inline int hpt_sleep(PVBUS_EXT vbus_ext, void *ident, int priority, const char *wmesg, int… in hpt_sleep() argument
200 return msleep(ident, &vbus_ext->lock, priority, wmesg, timo); in hpt_sleep()
/freebsd/sys/dev/hptnr/
H A Dos_bsd.h202 static __inline int hpt_sleep(PVBUS_EXT vbus_ext, void *ident, int priority, const char *wmesg, int… in hpt_sleep() argument
204 return msleep(ident, &vbus_ext->lock, priority, wmesg, timo); in hpt_sleep()
/freebsd/sys/dev/hptrr/
H A Dos_bsd.h203 static __inline int hpt_sleep(PVBUS_EXT vbus_ext, void *ident, int priority, const char *wmesg, int… in hpt_sleep() argument
205 return msleep(ident, &vbus_ext->lock, priority, wmesg, timo); in hpt_sleep()
/freebsd/sys/vm/
H A Dvm_object.h258 #define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \ argument
259 rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo))
342 void vm_object_busy_wait(vm_object_t object, const char *wmesg);
/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/sys/cam/
H A Dcam_xpt.h128 #define xpt_path_sleep(path, chan, priority, wmesg, timo) \ argument
129 msleep((chan), xpt_path_mtx(path), (priority), (wmesg), (timo))
H A Dcam_periph.h234 #define cam_periph_sleep(periph, chan, priority, wmesg, timo) \ argument
235 xpt_path_sleep((periph)->path, (chan), (priority), (wmesg), (timo))
/freebsd/sys/fs/nfs/
H A Dnfs_commonport.c269 nfsmsleep(void *chan, void *mutex, int prio, const char *wmesg, in nfsmsleep() argument
284 error = msleep(chan, (struct mtx *)mutex, prio, wmesg, timeo); in nfsmsleep()
407 nfs_catnap(int prio, int errval, const char *wmesg) in nfs_catnap() argument
413 ret = tsleep(&non_event, prio, wmesg, 5 * hz); in nfs_catnap()
415 ret = tsleep(&non_event, prio, wmesg, 1); in nfs_catnap()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_schedule.c43 const char *wmesg, int timeout, int state) in linux_add_to_sleepqueue() argument
52 sleepq_add(wchan, NULL, wmesg, flags, 0); in linux_add_to_sleepqueue()

12