shared_mutex_held
if (shared_mutex_held(mp))
if ((mtype & (LOCK_RECURSIVE|LOCK_ERRORCHECK)) && shared_mutex_held(mp))
if ((mtype & LOCK_ERRORCHECK) && !shared_mutex_held(mp))
return (shared_mutex_held(mparg));
static int shared_mutex_held(mutex_t *);