Solaris Dynamic Tracing Guide

rw_write_held()

int rw_write_held(krwlock_t *rwlock)

rw_write_held() returns non-zero if the specified reader-writer lock is currently held by a writer. If the lock is held only by readers or not held at all, rw_write_held() returns zero. See rw_init(9F).