Solaris Dynamic Tracing Guide


int rw_iswriter(krwlock_t *rwlock)

rw_iswriter() returns non-zero if the specified reader-writer lock 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. See rw_init(9F).