Lines Matching refs:ztp
98 zfs_topo_hdl_t *ztp;
117 ztp = topo_mod_zalloc(mod, sizeof (zfs_topo_hdl_t));
118 if (ztp == NULL) {
122 ztp->zt_hdlp = libzfs_init();
123 (void) pthread_mutex_init(&ztp->zt_mutex, NULL);
124 topo_mod_setspecific(mod, (void *)ztp);
131 zfs_topo_hdl_t *ztp = (zfs_topo_hdl_t *)topo_mod_getspecific(mod);
132 libzfs_handle_t *hdlp = ztp->zt_hdlp;
134 topo_mod_free(mod, ztp, sizeof (zfs_topo_hdl_t));
246 zfs_topo_hdl_t *ztp = (zfs_topo_hdl_t *)topo_mod_getspecific(mod);
247 libzfs_handle_t *hdlp = ztp->zt_hdlp;
254 (void) pthread_mutex_lock(&ztp->zt_mutex);
257 (void) pthread_mutex_unlock(&ztp->zt_mutex);
292 zfs_topo_hdl_t *ztp = (zfs_topo_hdl_t *)topo_mod_getspecific(mod);
293 libzfs_handle_t *hdlp = ztp->zt_hdlp;
302 (void) pthread_mutex_lock(&ztp->zt_mutex);
305 (void) pthread_mutex_unlock(&ztp->zt_mutex);