Home
last modified time | relevance | path

Searched refs:insert_node (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.5/kernel/src/libs/
Dbitree.c72 struct bt_node_t *insert_node = bt_create_node(NULL, NULL, NULL, value); in bt_insert() local
73 FAIL_ON_TO((uint64_t)insert_node == (uint64_t)(-ENOMEM), failed); in bt_insert()
78 if (smaller(root, insert_node, this_node)) in bt_insert()
84 insert_node->parent = last_node; in bt_insert()
86 root->bt_node = insert_node; in bt_insert()
89 if (smaller(root, insert_node, last_node)) in bt_insert()
90 last_node->left = insert_node; in bt_insert()
92 last_node->right = insert_node; in bt_insert()