Lines Matching refs:rw
61 rwst_enter_common(rwstlock_t *l, krw_t rw, int flags)
68 if (rw == RW_READER || rw == RW_READER_STARVEWRITER) {
70 (rw != RW_READER_STARVEWRITER && RWST_WRITE_WANTED(l))) {
92 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, l, sleep_time, rw,
96 LOCKSTAT_RECORD(LS_RW_ENTER_ACQUIRE, l, rw);
98 ASSERT(rw == RW_WRITER);
122 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, l, sleep_time, rw,
126 LOCKSTAT_RECORD(LS_RW_ENTER_ACQUIRE, l, rw);
152 rwst_enter(rwstlock_t *l, krw_t rw)
154 (void) rwst_enter_common(l, rw, 0);
158 rwst_enter_sig(rwstlock_t *l, krw_t rw)
160 return (rwst_enter_common(l, rw, RWST_SIG));
164 rwst_tryenter(rwstlock_t *l, krw_t rw)
166 return (rwst_enter_common(l, rw, RWST_TRYENTER));
170 rwst_lock_held(rwstlock_t *l, krw_t rw)
172 if (rw != RW_WRITER)
174 ASSERT(rw == RW_WRITER);