/freebsd/sys/kern/ |
H A D | vfs_vnops.c | 4103 vn_lock_pair_pause(const char *wmesg) in vn_lock_pair_pause() argument 4106 pause(wmesg, prng32_bounded(vn_lock_pair_pause_max)); in vn_lock_pair_pause()
|
H A D | kern_sysctl.c | 115 #define SYSCTL_SLEEP(ch, wmesg, timo) \ argument 116 rm_sleep(ch, &sysctllock, 0, wmesg, timo)
|
H A D | kern_umtx.c | 812 umtxq_sleep(struct umtx_q *uq, const char *wmesg, in umtxq_sleep() argument 834 error = msleep_sbt(uq, &uc->uc_lock, PCATCH | PDROP, wmesg, in umtxq_sleep() 2017 const char *wmesg, struct umtx_abs_timeout *timo, bool shared) in umtxq_sleep_pi() argument 2064 error = umtxq_sleep(uq, wmesg, timo); in umtxq_sleep_pi()
|
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_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 | 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 | vfs_bio.c | 4491 biowait(struct bio *bp, const char *wmesg) in biowait() argument 4498 msleep(bp, mtxp, PRIBIO, wmesg, 0); in biowait()
|
H A D | kern_sendfile.c | 280 sendfile_iowait(struct sf_io *sfio, const char *wmesg) in sendfile_iowait() argument 283 pause(wmesg, 1); in sendfile_iowait()
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_main.c | 6238 char *wmesg) in begin_synchronized_op() argument 6272 if (mtx_sleep(&sc->flags, &sc->sc_lock, pri, wmesg, 0)) { in begin_synchronized_op() 6281 sc->last_op = wmesg; in begin_synchronized_op()
|
/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()
|
H A D | nfs_commonkrpc.c | 1580 newnfs_msleep(struct thread *td, void *ident, struct mtx *mtx, int priority, char *wmesg, int timo) in newnfs_msleep() argument 1586 return msleep(ident, mtx, priority, wmesg, timo); in newnfs_msleep() 1590 error = msleep(ident, mtx, priority, wmesg, timo); in newnfs_msleep()
|
/freebsd/sys/geom/raid3/ |
H A D | g_raid3.c | 95 #define MSLEEP(ident, mtx, priority, wmesg, timeout) do { \ argument 97 msleep((ident), (mtx), (priority), (wmesg), (timeout)); \
|
/freebsd/usr.bin/kdump/ |
H A D | kdump.c | 1810 cs->user ? "user" : "kernel", cs->wmesg); in ktrcsw()
|
/freebsd/sys/vm/ |
H A D | vm_page.h | 599 vm_pindex_t pindex, const char *wmesg, int allocflags);
|
H A D | vm_object.c | 2485 vm_object_busy_wait(vm_object_t obj, const char *wmesg) in vm_object_busy_wait() argument 2490 (void)blockcount_sleep(&obj->busy, NULL, wmesg, PVM); in vm_object_busy_wait()
|
H A D | vm_page.c | 167 vm_pindex_t pindex, const char *wmesg, int allocflags, bool locked); 1014 vm_page_busy_sleep(vm_page_t m, const char *wmesg, int allocflags) in vm_page_busy_sleep() argument 1021 return (_vm_page_busy_sleep(obj, m, m->pindex, wmesg, allocflags, in vm_page_busy_sleep() 1039 const char *wmesg, int allocflags) in vm_page_busy_sleep_unlocked() argument 1043 (void)_vm_page_busy_sleep(obj, m, pindex, wmesg, allocflags, false); in vm_page_busy_sleep_unlocked() 1060 const char *wmesg, int allocflags, bool locked) in _vm_page_busy_sleep() argument 1072 vm_object_busy_wait(obj, wmesg); in _vm_page_busy_sleep() 1099 sleepq_add(m, NULL, wmesg, 0, 0); in _vm_page_busy_sleep() 4533 const char *wmesg, int allocflags, bool locked) in vm_page_grab_sleep() argument 4546 if (_vm_page_busy_sleep(object, m, pindex, wmesg, allocflags, locked) && in vm_page_grab_sleep()
|
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/sys/ |
H A D | ktrace.h | 166 char wmesg[8]; member
|
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 | mutex.h | 466 #define mtx_sleep(chan, mtx, pri, wmesg, timo) \ argument 467 _sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \
|
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 | bio.h | 152 int biowait(struct bio *bp, const char *wmesg);
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_softdep.c | 1699 wait_worklist(struct worklist *wk, char *wmesg) in wait_worklist() argument 1705 msleep(wk, LOCK_PTR(ump), PVM, wmesg, 0); in wait_worklist()
|
/freebsd/sys/cam/ |
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/amd64/vmm/ |
H A D | vmm.c | 1486 const char *wmesg; in vm_handle_hlt() local 1534 wmesg = "vmhalt"; in vm_handle_hlt() 1545 wmesg = "vmidle"; in vm_handle_hlt() 1554 msleep_spin(vcpu, &vcpu->mtx, wmesg, hz); in vm_handle_hlt()
|