Lines Matching refs:fmd

53 	ASSERT(MUTEX_HELD(&fmd.d_topo_lock));  in fmd_topo_rele_locked()
56 fmd_list_delete(&fmd.d_topo_list, ftp); in fmd_topo_rele_locked()
71 (void) pthread_mutex_lock(&fmd.d_topo_lock); in fmd_topo_update()
73 fmd.d_stats->ds_topo_drgen.fmds_value.ui64 = fmd_fmri_get_drgen(); in fmd_topo_update()
75 name = fmd.d_rootdir != NULL && in fmd_topo_update()
76 *fmd.d_rootdir != '\0' ? fmd.d_rootdir : NULL; in fmd_topo_update()
96 fmd.d_stats->ds_topo_gen.fmds_value.ui64++; in fmd_topo_update()
103 if ((prev = fmd_list_next(&fmd.d_topo_list)) != NULL) in fmd_topo_update()
106 fmd_list_prepend(&fmd.d_topo_list, ftp); in fmd_topo_update()
108 (void) pthread_mutex_unlock(&fmd.d_topo_lock); in fmd_topo_update()
116 (void) pthread_mutex_lock(&fmd.d_topo_lock); in fmd_topo_hold()
117 ftp = fmd_list_next(&fmd.d_topo_list); in fmd_topo_hold()
119 (void) pthread_mutex_unlock(&fmd.d_topo_lock); in fmd_topo_hold()
127 (void) pthread_mutex_lock(&fmd.d_topo_lock); in fmd_topo_addref()
129 (void) pthread_mutex_unlock(&fmd.d_topo_lock); in fmd_topo_addref()
135 (void) pthread_mutex_lock(&fmd.d_topo_lock); in fmd_topo_rele()
139 (void) pthread_mutex_unlock(&fmd.d_topo_lock); in fmd_topo_rele()
147 (void) pthread_mutex_lock(&fmd.d_topo_lock); in fmd_topo_rele_hdl()
148 for (ftp = fmd_list_next(&fmd.d_topo_list); ftp != NULL; in fmd_topo_rele_hdl()
156 (void) pthread_mutex_unlock(&fmd.d_topo_lock); in fmd_topo_rele_hdl()
170 (void) pthread_mutex_lock(&fmd.d_topo_lock); in fmd_topo_fini()
171 while ((ftp = fmd_list_next(&fmd.d_topo_list)) != NULL) { in fmd_topo_fini()
172 fmd_list_delete(&fmd.d_topo_list, ftp); in fmd_topo_fini()
176 (void) pthread_mutex_unlock(&fmd.d_topo_lock); in fmd_topo_fini()