Lines Matching defs:node_list

480  *   node_list etc. for node walking
482 struct node_list {
483 struct node_list *next;
488 free_node_list(struct node_list **headp)
490 struct node_list *tmp;
500 append_node_list(struct node_list **headp, struct node_list *list)
502 struct node_list *tmp;
520 prepend_node_list(struct node_list **headp, struct node_list *list)
522 struct node_list *tmp;
565 insert_node_list(struct node_list **headp, struct node_list *list,
568 struct node_list *tmp, *tmp1;
599 static struct node_list *
603 struct node_list *result, *tmp;
611 if ((result = malloc(sizeof (struct node_list))) == NULL) {
612 DPRINTF((DI_ERR, "malloc of node_list failed\n"));
620 if ((tmp->next = malloc(sizeof (struct node_list))) == NULL) {
621 DPRINTF((DI_ERR, "malloc of node_list failed\n"));
636 * Delete all siblings of the first node from the node_list, along with
640 prune_sib(struct node_list **headp)
643 struct node_list *curr, *prev;
703 update_node_list(int action, uint_t flag, struct node_list **headp)
705 struct node_list *children, *tmp;
772 walk_one_node(struct node_list **headp, uint_t flag, void *arg,
785 struct node_list *head; /* node_list for tree walk */
792 if ((head = malloc(sizeof (struct node_list))) == NULL) {
793 DPRINTF((DI_ERR, "malloc of node_list failed\n"));
812 * on node_list headp, and place children of first node on the list.
818 walk_one_minor_list(struct node_list **headp, const char *desired_type,
856 struct node_list *head; /* node_list for tree walk */
869 if ((head = malloc(sizeof (struct node_list))) == NULL) {
870 DPRINTF((DI_ERR, "malloc of node_list failed\n"));
3573 * on node_list headp, and place children of first node on the list.
3579 walk_one_link(struct node_list **headp, uint_t ep,
3600 struct node_list *head; /* node_list for tree walk */
3618 if ((head = malloc(sizeof (struct node_list))) == NULL) {
3619 DPRINTF((DI_ERR, "malloc of node_list failed\n"));
3638 * on node_list headp, and place children of first node on the list.
3644 walk_one_lnode(struct node_list **headp, void *arg,
3665 struct node_list *head; /* node_list for tree walk */
3681 if ((head = malloc(sizeof (struct node_list))) == NULL) {
3682 DPRINTF((DI_ERR, "malloc of node_list failed\n"));