Searched refs:mh_lock (Results 1 – 5 of 5) sorted by relevance
1027 (void) pthread_rwlock_init(&mhp->mh_lock, NULL); in fmd_modhash_create()1050 (void) pthread_rwlock_destroy(&mhp->mh_lock); in fmd_modhash_destroy()1101 (void) pthread_rwlock_rdlock(&mhp->mh_lock); in fmd_modhash_apply()1110 (void) pthread_rwlock_unlock(&mhp->mh_lock); in fmd_modhash_apply()1119 if (mhp == NULL || pthread_rwlock_tryrdlock(&mhp->mh_lock) != 0) in fmd_modhash_tryapply()1129 (void) pthread_rwlock_unlock(&mhp->mh_lock); in fmd_modhash_tryapply()1139 (void) pthread_rwlock_rdlock(&mhp->mh_lock); in fmd_modhash_dispatch()1169 (void) pthread_rwlock_unlock(&mhp->mh_lock); in fmd_modhash_dispatch()1179 (void) pthread_rwlock_rdlock(&mhp->mh_lock); in fmd_modhash_lookup()1192 (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()
112 (void) pthread_mutex_lock(&mhp->mh_lock); in topo_modhash_lock()118 (void) pthread_mutex_unlock(&mhp->mh_lock); in topo_modhash_unlock()270 (void) pthread_mutex_init(&mhp->mh_lock, NULL); in topo_modhash_create()
48 pthread_mutex_t mh_lock; /* hash lock */ member