Lines Matching full:cn

80 		config_node_t *cn;  in namespace_clear()  local
83 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, in namespace_clear()
85 nvlist_free(cn->cn_config); in namespace_clear()
86 free(cn->cn_name); in namespace_clear()
87 free(cn); in namespace_clear()
107 config_node_t *cn; in namespace_reload() local
169 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, &cookie)) != NULL) { in namespace_reload()
170 nvlist_free(cn->cn_config); in namespace_reload()
171 free(cn->cn_name); in namespace_reload()
172 free(cn); in namespace_reload()
180 cn = zfs_alloc(hdl, sizeof (config_node_t)); in namespace_reload()
181 cn->cn_name = zfs_strdup(hdl, nvpair_name(elem)); in namespace_reload()
183 if (nvlist_dup(child, &cn->cn_config, 0) != 0) { in namespace_reload()
184 free(cn->cn_name); in namespace_reload()
185 free(cn); in namespace_reload()
189 verify(uu_avl_find(hdl->libzfs_ns_avl, cn, NULL, &where) in namespace_reload()
192 uu_avl_insert(hdl->libzfs_ns_avl, cn, where); in namespace_reload()
371 config_node_t *cn; in zpool_iter() local
385 for (cn = uu_avl_first(hdl->libzfs_ns_avl); cn != NULL; in zpool_iter()
386 cn = uu_avl_next(hdl->libzfs_ns_avl, cn)) { in zpool_iter()
388 if (zpool_skip_pool(cn->cn_name)) in zpool_iter()
391 if (zpool_open_silent(hdl, cn->cn_name, &zhp) != 0) { in zpool_iter()
416 config_node_t *cn; in zfs_iter_root() local
423 for (cn = uu_avl_first(hdl->libzfs_ns_avl); cn != NULL; in zfs_iter_root()
424 cn = uu_avl_next(hdl->libzfs_ns_avl, cn)) { in zfs_iter_root()
426 if (zpool_skip_pool(cn->cn_name)) in zfs_iter_root()
429 if ((zhp = make_dataset_handle(hdl, cn->cn_name)) == NULL) in zfs_iter_root()