Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/libs/
Dbitree.c216 struct bt_node_t *nd; in bt_destroy_tree() local
217 int count = kfifo_out(&fifo, &nd, sizeof(uint64_t)); in bt_destroy_tree()
220 if (nd->left != NULL) in bt_destroy_tree()
221 kfifo_in(&fifo, (void *)&(nd->left), sizeof(struct bt_node_t *)); in bt_destroy_tree()
223 if (nd->right != NULL) in bt_destroy_tree()
224 kfifo_in(&fifo, (void *)&(nd->right), sizeof(struct bt_node_t *)); in bt_destroy_tree()
227 root->release(nd->value); in bt_destroy_tree()
228 kfree(nd); in bt_destroy_tree()