Home
last modified time | relevance | path

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

12

/f-stack/freebsd/sys/
H A Dblockcount.h44 int _blockcount_sleep(blockcount_t *bc, struct lock_object *, const char *wmesg,
80 _blockcount_wait(blockcount_t *bc, struct lock_object *lo, const char *wmesg, in _blockcount_wait() argument
85 while (_blockcount_sleep(bc, lo, wmesg, prio) == EAGAIN) in _blockcount_wait()
89 #define blockcount_sleep(bc, lo, wmesg, prio) \ argument
90 _blockcount_sleep((bc), (struct lock_object *)(lo), (wmesg), (prio))
91 #define blockcount_wait(bc, lo, wmesg, prio) \ argument
92 _blockcount_wait((bc), (struct lock_object *)(lo), (wmesg), (prio))
H A Dlockmgr.h73 const char *wmesg, int prio, int timo, const char *file, int line);
90 void lockinit(struct lock *lk, int prio, const char *wmesg, int timo,
103 _lockmgr_args(struct lock *lk, u_int flags, struct mtx *ilk, const char *wmesg, in _lockmgr_args() argument
108 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args()
113 const char *wmesg, int prio, int timo, const char *file, int line) in _lockmgr_args_rw() argument
117 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args_rw()
127 #define lockmgr_args(lk, flags, ilk, wmesg, prio, timo) \ argument
128 _lockmgr_args((lk), (flags), (ilk), (wmesg), (prio), (timo), \
130 #define lockmgr_args_rw(lk, flags, ilk, wmesg, prio, timo) \ argument
131 _lockmgr_args_rw((lk), (flags), (ilk), (wmesg), (prio), (timo), \
H A Dsystm.h518 #define msleep(chan, mtx, pri, wmesg, timo) \ argument
519 _sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \
521 #define msleep_sbt(chan, mtx, pri, wmesg, bt, pr, flags) \ argument
526 #define msleep_spin(chan, mtx, wmesg, timo) \ argument
531 #define pause(wmesg, timo) \ argument
532 pause_sbt((wmesg), tick_sbt * (timo), 0, C_HARDCLOCK)
533 #define pause_sig(wmesg, timo) \ argument
535 #define tsleep(chan, pri, wmesg, timo) \ argument
536 _sleep((chan), NULL, (pri), (wmesg), tick_sbt * (timo), \
538 #define tsleep_sbt(chan, pri, wmesg, bt, pr, flags) \ argument
[all …]
H A Drmlock.h98 #define rm_sleep(chan, rm, pri, wmesg, timo) \ argument
99 _sleep((chan), &(rm)->lock_object, (pri), (wmesg), \
H A Dsleepqueue.h92 const char *wmesg, int flags, int queue);
H A Dsx.h265 #define sx_sleep(chan, sx, pri, wmesg, timo) \ argument
266 _sleep((chan), &(sx)->lock_object, (pri), (wmesg), \
H A Drwlock.h240 #define rw_sleep(chan, rw, pri, wmesg, timo) \ argument
241 _sleep((chan), &(rw)->lock_object, (pri), (wmesg), \
H A Dktrace.h149 char wmesg[8]; member
H A Dbuf.h316 #define BUF_TIMELOCK(bp, locktype, interlock, wmesg, catch, timo) \ argument
318 (interlock), (wmesg), (PRIBIO + 4) | (catch), (timo), \
H A Dmutex.h463 #define mtx_sleep(chan, mtx, pri, wmesg, timo) \ argument
464 _sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \
/f-stack/lib/
H A Dff_kern_synch.c64 const char *wmesg; member
88 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags) in _sleep() argument
96 msleep_spin_sbt(const void * _Nonnull chan, struct mtx *mtx, const char *wmesg, in msleep_spin_sbt() argument
103 pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags) in pause_sbt() argument
105 return (_sleep(&pause_wchan[curcpu], NULL, 0, wmesg, sbt, pr, flags)); in pause_sbt()
/f-stack/freebsd/kern/
H A Dkern_synch.c136 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags) in _sleep() argument
147 ktrcsw(1, 0, wmesg); in _sleep()
150 "Sleeping on \"%s\"", wmesg); in _sleep()
183 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()
264 sleepq_add(ident, &mtx->lock_object, wmesg, SLEEPQ_SLEEP, 0); in msleep_spin_sbt()
278 ktrcsw(1, 0, wmesg); in msleep_spin_sbt()
285 wmesg); in msleep_spin_sbt()
296 ktrcsw(0, 0, wmesg); in msleep_spin_sbt()
[all …]
H A Dsubr_sleepqueue.c158 static void sleepq_profile(const char *wmesg);
309 sleepq_add(const void *wchan, struct lock_object *lock, const char *wmesg, in sleepq_add() argument
381 td->td_wmesg = wmesg; in sleepq_add()
1296 sleepq_profile(const char *wmesg) in sleepq_profile() argument
1303 LIST_FOREACH(sp, &sleepq_hash[SC_HASH(wmesg)], sp_link) in sleepq_profile()
1304 if (sp->sp_wmesg == wmesg) in sleepq_profile()
1309 sp->sp_wmesg = wmesg; in sleepq_profile()
1311 LIST_INSERT_HEAD(&sleepq_hash[SC_HASH(wmesg)], sp, sp_link); in sleepq_profile()
H A Dkern_ktrace.c737 ktrcsw(int out, int user, const char *wmesg) in ktrcsw() argument
752 if (wmesg != NULL) in ktrcsw()
753 strlcpy(kc->wmesg, wmesg, sizeof(kc->wmesg)); in ktrcsw()
755 bzero(kc->wmesg, sizeof(kc->wmesg)); in ktrcsw()
H A Dkern_lock.c267 const char *wmesg, int pri, int timo, int queue) in sleeplk() argument
286 sleepq_add(&lk->lock_object, NULL, wmesg, SLEEPQ_LK | (catch ? in sleeplk()
431 lockinit(struct lock *lk, int pri, const char *wmesg, int timo, int flags) in lockinit() argument
437 ("%s: lockmgr not aligned for %s: %p", __func__, wmesg, in lockinit()
457 lock_init(&lk->lock_object, &lock_class_lockmgr, wmesg, NULL, iflags); in lockinit()
1298 const char *wmesg, int pri, int timo, const char *file, int line) in __lockmgr_args() argument
1318 iwmesg = (wmesg == LK_WMESG_DEFAULT) ? lk->lock_object.lo_name : wmesg; in __lockmgr_args()
H A Dsubr_smp.c951 quiesce_cpus(cpuset_t map, const char *wmesg, int prio) in quiesce_cpus() argument
973 error = tsleep(quiesce_cpus, prio, wmesg, 1); in quiesce_cpus()
988 quiesce_all_cpus(const char *wmesg, int prio) in quiesce_all_cpus() argument
991 return quiesce_cpus(all_cpus, wmesg, prio); in quiesce_all_cpus()
H A Dkern_sendfile.c279 sendfile_iowait(struct sf_io *sfio, const char *wmesg) in sendfile_iowait() argument
282 pause(wmesg, 1); in sendfile_iowait()
H A Dkern_umtx.c281 static int umtxq_sleep(struct umtx_q *uq, const char *wmesg, struct abs_timeout *);
812 umtxq_sleep(struct umtx_q *uq, const char *wmesg, struct abs_timeout *abstime) in umtxq_sleep() argument
837 error = msleep(uq, &uc->uc_lock, PCATCH | PDROP, wmesg, timo); in umtxq_sleep()
1659 const char *wmesg, struct abs_timeout *timo, bool shared) in umtxq_sleep_pi() argument
1706 error = umtxq_sleep(uq, wmesg, timo); in umtxq_sleep_pi()
H A Dkern_sysctl.c117 #define SYSCTL_SLEEP(ch, wmesg, timo) \ argument
118 rm_sleep(ch, &sysctllock, 0, wmesg, timo)
/f-stack/freebsd/ddb/
H A Ddb_ps.c265 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()
/f-stack/freebsd/vm/
H A Dvm_object.h260 #define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \ argument
261 rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo))
357 void vm_object_busy_wait(vm_object_t object, const char *wmesg);
H A Dvm_page.c1014 vm_page_busy_sleep(vm_page_t m, const char *wmesg, bool nonshared) in vm_page_busy_sleep() argument
1022 if (!_vm_page_busy_sleep(obj, m, m->pindex, wmesg, in vm_page_busy_sleep()
1040 const char *wmesg, bool nonshared) in vm_page_busy_sleep_unlocked() argument
1046 _vm_page_busy_sleep(obj, m, pindex, wmesg, in vm_page_busy_sleep_unlocked()
1062 const char *wmesg, int allocflags, bool locked) in _vm_page_busy_sleep() argument
1074 vm_object_busy_wait(obj, wmesg); in _vm_page_busy_sleep()
1101 sleepq_add(m, NULL, wmesg, 0, 0); in _vm_page_busy_sleep()
1412 vm_page_sleep_if_busy(vm_page_t m, const char *wmesg) in vm_page_sleep_if_busy() argument
1427 if (_vm_page_busy_sleep(obj, m, m->pindex, wmesg, 0, true)) { in vm_page_sleep_if_busy()
1444 vm_page_sleep_if_xbusy(vm_page_t m, const char *wmesg) in vm_page_sleep_if_xbusy() argument
[all …]
H A Dvm_page.h594 vm_pindex_t pindex, const char *wmesg, bool nonshared);
H A Dvm_object.c2475 vm_object_busy_wait(vm_object_t obj, const char *wmesg) in vm_object_busy_wait() argument
2480 (void)blockcount_sleep(&obj->busy, NULL, wmesg, PVM); in vm_object_busy_wait()
/f-stack/freebsd/amd64/vmm/
H A Dvmm.c1326 const char *wmesg; in vm_handle_hlt() local
1374 wmesg = "vmhalt"; in vm_handle_hlt()
1385 wmesg = "vmidle"; in vm_handle_hlt()
1394 msleep_spin(vcpu, &vcpu->mtx, wmesg, hz); in vm_handle_hlt()

12