rw_write_held
extern int rw_write_held(rwlock_t *);
if (!rw_write_held(rwlp)) {
if (rw_write_held(rwlp)) {
if (rw_write_held(rwlp)) {
return (rw_read_held(rwlp) || rw_write_held(rwlp));
#define RW_WRITE_HELD(x) (rw_write_held((x)))
extern int rw_write_held(krwlock_t *);
held = rw_write_held(&vpvfsentry_ve_lock);
held = rw_write_held(&vfsentry_ve_lock);
if (rw_write_held(&rwx->rwx_lock)) {
rwtype = (rw_write_held(&ip->i_contents)?RW_WRITER:RW_READER);
exclusive = rw_write_held(&ip->i_contents);
rwtype = (rw_write_held(&ip->i_contents)?RW_WRITER:RW_READER);
exclusive = rw_write_held(&ip->i_rwlock);
if (!rw_write_held(&ip->i_rwlock)) {
ASSERT(rw_write_held(&ifs->ifs_ipf_global.ipf_lk) == 0 ||
rw_write_held(&ifs->ifs_ipf_state.ipf_lk) == 0);
ASSERT(rw_write_held(&bfe->bfe_rwlock)); \
ASSERT(rw_write_held(&fmodsw_lock));
ASSERT(rw_write_held(&fmodsw_lock));
ASSERT(rw_write_held(ap->ippa_lock));
ASSERT(rw_write_held(imp->ippm_lock));
ASSERT(rw_write_held(ap->ippa_lock));
ASSERT(rw_write_held(imp->ippm_lock));
ASSERT(rw_write_held(ipp_mod_byid_lock));
ASSERT(rw_write_held(refby_ap->ippa_lock));
ASSERT(rw_write_held(ref_ap->ippa_lock));
ASSERT(rw_write_held(refby_ap->ippa_lock));
ASSERT(rw_write_held(ref_ap->ippa_lock));
ASSERT(rw_write_held(ipp_action_byid_lock));
ASSERT(rw_write_held(&kcage_range_rwlock));
ASSERT(rw_write_held(&kcage_range_rwlock));
ASSERT(rw_write_held(&kcage_range_rwlock));
ASSERT(rw_write_held(&endpnt_type_lock));
rw_write_held(&(macinfo)->gldm_lock.gldl_rw_lock)
#define RW_WRITE_HELD(x) (rw_write_held((x)))
extern int rw_write_held(krwlock_t *);
VERIFY(rw_write_held(&sc->vmm_rwlock));