Home | History | Annotate | Download | only in kern

Lines Matching defs:sq

101 sleepq_init(sleepq_t *sq)
104 LIST_INIT(sq);
120 sleepq_remove(sleepq_t *sq, lwp_t *l, bool wakeup)
128 KASSERT(sq != NULL);
131 KASSERT(sq == NULL);
191 sleepq_insert(sleepq_t *sq, lwp_t *l, syncobj_t *sobj)
195 KASSERT(sq == NULL);
198 KASSERT(sq != NULL);
204 LIST_FOREACH(l2, sq, l_sleepchain) {
220 LIST_INSERT_HEAD(sq, l, l_sleepchain);
230 sleepq_enter(sleepq_t *sq, lwp_t *l, kmutex_t *mp)
234 KASSERT((sq != NULL) == (mp != NULL));
258 sleepq_enqueue(sleepq_t *sq, wchan_t wchan, const char *wmesg, syncobj_t *sobj,
271 l->l_sleepq = sq;
278 sleepq_insert(sq, l, sobj);
295 sleepq_transfer(lwp_t *l, sleepq_t *from_sq, sleepq_t *sq, wchan_t wchan,
304 l->l_sleepq = sq;
319 sleepq_insert(sq, l, sobj);
456 sleepq_wake(sleepq_t *sq, wchan_t wchan, u_int expected, kmutex_t *mp)
462 for (l = LIST_FIRST(sq); l != NULL; l = next) {
463 KASSERT(l->l_sleepq == sq);
468 sleepq_remove(sq, l, true);
486 sleepq_t *sq = l->l_sleepq;
492 sleepq_remove(sq, l, false);
582 sleepq_reinsert(sleepq_t *sq, lwp_t *l)
585 KASSERT(l->l_sleepq == sq);
596 if (LIST_FIRST(sq) == l && LIST_NEXT(l, l_sleepchain) == NULL) {
600 sleepq_insert(sq, l, l->l_syncobj);
611 sleepq_t *sq = l->l_sleepq;
616 sleepq_reinsert(sq, l);
627 sleepq_t *sq = l->l_sleepq;
633 sleepq_reinsert(sq, l);