4.2.30 rw_iswriter

int rw_iswriter(krwlock_t *rwlock)

The rw_iswriter function returns non-zero if the specified reader-writer lock (rwlock) is either held or desired by a writer. If the lock is held only by readers and no writer is blocked, or if the lock is not held at all, rw_iswriter returns zero.