/freebsd/sys/kern/ |
H A D | kern_condvar.c | 112 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 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() 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 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() 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 D | kern_ktrace.c | 834 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 D | kern_lock.c | 266 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 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 | 463 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 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 | 69 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 D | db_ps.c | 98 * 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 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 | 258 #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 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 | 269 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 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()
|