4.6.30 rw_iswriter

int rw_iswriter(krwlock_t *rwlock)

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