Searched refs:nreaders (Results 1 – 3 of 3) sorted by relevance
410 int nreaders; in rw_exit_wakeup() local480 (nreaders = rw_readers_to_wake(ts)) > 0) { in rw_exit_wakeup()485 new = nreaders * RW_READ_LOCK; in rw_exit_wakeup()486 if (ts->ts_waiters > nreaders) in rw_exit_wakeup()492 turnstile_wakeup(ts, TS_READER_Q, nreaders, NULL); in rw_exit_wakeup()577 int nreaders = rw_readers_to_wake(ts); in rw_downgrade() local578 if (nreaders > 0) { in rw_downgrade()579 uintptr_t delta = nreaders * RW_READ_LOCK; in rw_downgrade()580 if (ts->ts_waiters == nreaders) in rw_downgrade()584 turnstile_wakeup(ts, TS_READER_Q, nreaders, NULL); in rw_downgrade()
292 int nreaders; /* number of readers, -1 if writer */ member
2577 si_p->si_state.nreaders = -1; in sync_get_info_common()2586 si_p->si_state.nreaders = (rwstate & URW_READERS_MASK); in sync_get_info_common()