Lines Matching refs:node
20 struct bt_root_t *bt_create_tree(struct bt_node_t *node, int (*cmp)(void *a, void *b), int (*releas… in bt_create_tree() argument
22 if (node == NULL || cmp == NULL) in bt_create_tree()
27 root->bt_node = node; in bt_create_tree()
30 root->size = (node == NULL) ? 0 : 1; in bt_create_tree()
45 struct bt_node_t *node = (struct bt_node_t *)kmalloc(sizeof(struct bt_node_t), 0); in bt_create_node() local
46 FAIL_ON_TO(node == NULL, nomem); in bt_create_node()
47 memset((void *)node, 0, sizeof(struct bt_node_t)); in bt_create_node()
49 node->left = left; in bt_create_node()
50 node->right = right; in bt_create_node()
51 node->value = value; in bt_create_node()
52 node->parent = parent; in bt_create_node()
54 return node; in bt_create_node()