Lines Matching refs:fmd
29 * libtopo snapshot. Upon fmd initialization, a snapshot is taken and
42 #include <fmd.h>
53 ASSERT(MUTEX_HELD(&fmd.d_topo_lock));
56 fmd_list_delete(&fmd.d_topo_list, ftp);
71 (void) pthread_mutex_lock(&fmd.d_topo_lock);
73 fmd.d_stats->ds_topo_drgen.fmds_value.ui64 = fmd_fmri_get_drgen();
75 name = fmd.d_rootdir != NULL &&
76 *fmd.d_rootdir != '\0' ? fmd.d_rootdir : NULL;
96 fmd.d_stats->ds_topo_gen.fmds_value.ui64++;
103 if ((prev = fmd_list_next(&fmd.d_topo_list)) != NULL)
106 fmd_list_prepend(&fmd.d_topo_list, ftp);
108 (void) pthread_mutex_unlock(&fmd.d_topo_lock);
116 (void) pthread_mutex_lock(&fmd.d_topo_lock);
117 ftp = fmd_list_next(&fmd.d_topo_list);
119 (void) pthread_mutex_unlock(&fmd.d_topo_lock);
127 (void) pthread_mutex_lock(&fmd.d_topo_lock);
129 (void) pthread_mutex_unlock(&fmd.d_topo_lock);
135 (void) pthread_mutex_lock(&fmd.d_topo_lock);
139 (void) pthread_mutex_unlock(&fmd.d_topo_lock);
147 (void) pthread_mutex_lock(&fmd.d_topo_lock);
148 for (ftp = fmd_list_next(&fmd.d_topo_list); ftp != NULL;
156 (void) pthread_mutex_unlock(&fmd.d_topo_lock);
170 (void) pthread_mutex_lock(&fmd.d_topo_lock);
171 while ((ftp = fmd_list_next(&fmd.d_topo_list)) != NULL) {
172 fmd_list_delete(&fmd.d_topo_list, ftp);
176 (void) pthread_mutex_unlock(&fmd.d_topo_lock);