/freebsd/sys/kern/ |
H A D | kern_condvar.c | 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() 194 strlcpy(wmesg, cv_wmesg(cvp), sizeof(wmesg)); in _cv_wait_unlock() 197 wmesg[0] = '\0'; in _cv_wait_unlock() 249 strlcpy(wmesg, cv_wmesg(cvp), sizeof(wmesg)); in _cv_wait_sig() 252 wmesg[0] = '\0'; in _cv_wait_sig() 317 strlcpy(wmesg, cv_wmesg(cvp), sizeof(wmesg)); in _cv_timedwait_sbt() 320 wmesg[0] = '\0'; in _cv_timedwait_sbt() 387 strlcpy(wmesg, cv_wmesg(cvp), sizeof(wmesg)); in _cv_timedwait_sig_sbt() [all …]
|
H A D | kern_synch.c | 132 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() 265 sleepq_add(ident, &mtx->lock_object, wmesg, SLEEPQ_SLEEP, 0); in msleep_spin_sbt() 279 ktrcsw(1, 0, wmesg); in msleep_spin_sbt() 286 wmesg); in msleep_spin_sbt() 297 ktrcsw(0, 0, wmesg); in msleep_spin_sbt() [all …]
|
H A D | subr_sleepqueue.c | 156 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() 1330 sleepq_profile(const char *wmesg) in sleepq_profile() argument 1337 LIST_FOREACH(sp, &sleepq_hash[SC_HASH(wmesg)], sp_link) in sleepq_profile() 1338 if (sp->sp_wmesg == wmesg) in sleepq_profile() 1343 sp->sp_wmesg = wmesg; in sleepq_profile() 1345 LIST_INSERT_HEAD(&sleepq_hash[SC_HASH(wmesg)], sp, sp_link); in sleepq_profile()
|
H A D | kern_ktrace.c | 817 ktrcsw(int out, int user, const char *wmesg) in ktrcsw() argument 832 if (wmesg != NULL) in ktrcsw() 833 strlcpy(kc->wmesg, wmesg, sizeof(kc->wmesg)); in ktrcsw() 835 bzero(kc->wmesg, sizeof(kc->wmesg)); in ktrcsw()
|
H A D | kern_lock.c | 271 const char *wmesg, int pri, int timo, int queue) in sleeplk() argument 292 sleepq_add(&lk->lock_object, NULL, wmesg, SLEEPQ_LK | (catch ? in sleeplk() 436 lockinit(struct lock *lk, int pri, const char *wmesg, int timo, int flags) in lockinit() argument 442 ("%s: lockmgr not aligned for %s: %p", __func__, wmesg, in lockinit() 462 lock_init(&lk->lock_object, &lock_class_lockmgr, wmesg, NULL, iflags); in lockinit() 1306 const char *wmesg, int pri, int timo, const char *file, int line) in __lockmgr_args() argument 1326 iwmesg = (wmesg == LK_WMESG_DEFAULT) ? lk->lock_object.lo_name : wmesg; in __lockmgr_args()
|
/freebsd/sys/sys/ |
H A D | blockcount.h | 42 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 D | lockmgr.h | 71 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 D | systm.h | 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 472 #define msleep_spin(chan, mtx, wmesg, timo) \ argument 478 pause(const char *wmesg, int timo) in pause() argument 480 return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK)); in pause() 482 #define pause_sig(wmesg, timo) \ argument 484 #define tsleep(chan, pri, wmesg, timo) \ argument 485 _sleep((chan), NULL, (pri), (wmesg), tick_sbt * (timo), \ 487 #define tsleep_sbt(chan, pri, wmesg, bt, pr, flags) \ argument [all …]
|
H A D | buf.h | 298 #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 D | rmlock.h | 97 #define rm_sleep(chan, rm, pri, wmesg, timo) \ argument 98 _sleep((chan), &(rm)->lock_object, (pri), (wmesg), \
|
H A D | sleepqueue.h | 91 const char *wmesg, int flags, int queue);
|
H A D | rwlock.h | 241 #define rw_sleep(chan, rw, pri, wmesg, timo) \ argument 242 _sleep((chan), &(rw)->lock_object, (pri), (wmesg), \
|
H A D | sx.h | 264 #define sx_sleep(chan, sx, pri, wmesg, timo) \ argument 265 _sleep((chan), &(sx)->lock_object, (pri), (wmesg), \
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_status.c | 68 const char *wmesg; in procfs_doprocstatus() local 119 wmesg = tdfirst->td_wmesg; in procfs_doprocstatus() 121 wmesg = "nochan"; in procfs_doprocstatus() 140 sbuf_printf(sb, " %s", wmesg); in procfs_doprocstatus()
|
/freebsd/sys/ddb/ |
H A D | db_ps.c | 265 const char *wmesg; in dumpthread() local 309 wmesg = td->td_lockname; in dumpthread() 312 wmesg = td->td_wmesg; in dumpthread() 316 wmesg = state; in dumpthread() 319 wmesg = ""; in dumpthread() 322 db_printf("%c%-7.7s ", wprefix, wmesg); in dumpthread()
|
/freebsd/sys/dev/qat/include/common/ |
H A D | qat_freebsd.h | 45 #define pause_ms(wmesg, ms) pause_sbt(wmesg, (ms)*SBT_1MS, 0, C_HARDCLOCK) argument
|
/freebsd/sys/dev/hpt27xx/ |
H A D | os_bsd.h | 198 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 D | os_bsd.h | 202 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 D | os_bsd.h | 203 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 D | vm_object.h | 252 #define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \ argument 253 rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo)) 336 void vm_object_busy_wait(vm_object_t object, const char *wmesg);
|
/freebsd/sys/dev/ppbus/ |
H A D | ppb_base.c | 244 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 D | cam_xpt.h | 128 #define xpt_path_sleep(path, chan, priority, wmesg, timo) \ argument 129 msleep((chan), xpt_path_mtx(path), (priority), (wmesg), (timo))
|
H A D | cam_periph.h | 234 #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 D | nfs_commonport.c | 268 nfsmsleep(void *chan, void *mutex, int prio, const char *wmesg, in nfsmsleep() argument 283 error = msleep(chan, (struct mtx *)mutex, prio, wmesg, timeo); in nfsmsleep() 406 nfs_catnap(int prio, int errval, const char *wmesg) in nfs_catnap() argument 412 ret = tsleep(&non_event, prio, wmesg, 5 * hz); in nfs_catnap() 414 ret = tsleep(&non_event, prio, wmesg, 1); in nfs_catnap()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_schedule.c | 43 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()
|