Lines Matching defs:node
79 zpool_node_t *node = safe_malloc(sizeof (zpool_node_t));
82 node->zn_handle = zhp;
83 uu_avl_node_init(node, &node->zn_avlnode, zlp->zl_pool);
84 if (uu_avl_find(zlp->zl_avl, node, NULL, &idx) == NULL) {
88 free(node);
91 uu_avl_insert(zlp->zl_avl, node, idx);
94 free(node);
167 zpool_node_t *node, *next_node;
170 for (node = uu_avl_first(zlp->zl_avl); node != NULL; node = next_node) {
171 next_node = uu_avl_next(zlp->zl_avl, node);
172 if (zpool_get_state(node->zn_handle) != POOL_STATE_UNAVAIL ||
174 ret |= func(node->zn_handle, data);
187 zpool_node_t search, *node;
190 if ((node = uu_avl_find(zlp->zl_avl, &search, NULL, NULL)) != NULL) {
191 uu_avl_remove(zlp->zl_avl, node);
192 zpool_close(node->zn_handle);
193 free(node);
204 zpool_node_t *node;
212 while ((node = uu_avl_walk_next(walk)) != NULL) {
213 uu_avl_remove(zlp->zl_avl, node);
214 zpool_close(node->zn_handle);
215 free(node);