Lines Matching refs:sq
45 sleepq_init(sleepq_t *sq)
48 LIST_INIT(sq);
49 cv_init(&sq->sq_cv, "sleepq");
53 sleepq_destroy(sleepq_t *sq)
56 cv_destroy(&sq->sq_cv);
60 sleepq_enter(sleepq_t *sq, lwp_t *l, kmutex_t *mp)
75 sleepq_enqueue(sleepq_t *sq, wchan_t wc, const char *wmsg, syncobj_t *sob,
82 l->l_sleepq = sq;
83 LIST_INSERT_HEAD(sq, l, l_sleepchain);
113 sleepq_wake(sleepq_t *sq, wchan_t wchan, u_int expected, kmutex_t *mp)
118 for (l = LIST_FIRST(sq); l; l = l_next) {
130 cv_broadcast(&sq->sq_cv);
150 sleepq_remove(sleepq_t *sq, struct lwp *l, bool wakeup)