Searched refs:mh_lock (Results 1 – 5 of 5) sorted by relevance
1024 (void) pthread_rwlock_init(&mhp->mh_lock, NULL); in fmd_modhash_create()1047 (void) pthread_rwlock_destroy(&mhp->mh_lock); in fmd_modhash_destroy()1098 (void) pthread_rwlock_rdlock(&mhp->mh_lock); in fmd_modhash_apply()1107 (void) pthread_rwlock_unlock(&mhp->mh_lock); in fmd_modhash_apply()1116 if (mhp == NULL || pthread_rwlock_tryrdlock(&mhp->mh_lock) != 0) in fmd_modhash_tryapply()1126 (void) pthread_rwlock_unlock(&mhp->mh_lock); in fmd_modhash_tryapply()1136 (void) pthread_rwlock_rdlock(&mhp->mh_lock); in fmd_modhash_dispatch()1166 (void) pthread_rwlock_unlock(&mhp->mh_lock); in fmd_modhash_dispatch()1176 (void) pthread_rwlock_rdlock(&mhp->mh_lock); in fmd_modhash_lookup()1189 (void) pthread_rwlock_unlock(&mhp->mh_lock); in fmd_modhash_lookup()[all …]
61 pthread_rwlock_t mh_lock; /* r/w lock to protect hash */ member
338 (void) pthread_rwlock_rdlock(&mhp->mh_lock); in fmd_xprt_subscribe_modhash()364 (void) pthread_rwlock_unlock(&mhp->mh_lock); in fmd_xprt_subscribe_modhash()
115 (void) pthread_mutex_lock(&mhp->mh_lock); in topo_modhash_lock()121 (void) pthread_mutex_unlock(&mhp->mh_lock); in topo_modhash_unlock()275 (void) pthread_mutex_init(&mhp->mh_lock, NULL); in topo_modhash_create()
46 pthread_mutex_t mh_lock; /* hash lock */ member