Searched refs:bt_root_t (Results 1 – 3 of 3) sorted by relevance
/DragonOS-0.1.7/kernel/src/common/ |
D | bitree.h | 13 struct bt_root_t struct 33 struct bt_root_t *bt_create_tree(struct bt_node_t *node, int (*cmp)(void *a, void *b), int (*releas… 52 int bt_insert(struct bt_root_t *root, void *value); 62 int bt_query(struct bt_root_t *root, void *value, uint64_t *ret_addr); 71 int bt_delete(struct bt_root_t *root, void *value); 79 int bt_destroy_tree(struct bt_root_t *root);
|
/DragonOS-0.1.7/kernel/src/libs/ |
D | bitree.c | 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() 25 struct bt_root_t *root = (struct bt_root_t *)kmalloc(sizeof(struct bt_root_t), 0); in bt_create_tree() 26 memset((void *)root, 0, sizeof(struct bt_root_t)); in bt_create_tree() 65 int bt_insert(struct bt_root_t *root, void *value) in bt_insert() 108 int bt_query(struct bt_root_t *root, void *value, uint64_t *ret_addr) in bt_query() 153 int bt_delete(struct bt_root_t *root, void *value) in bt_delete() 204 int bt_destroy_tree(struct bt_root_t *root) in bt_destroy_tree()
|
/DragonOS-0.1.7/kernel/src/ktest/ |
D | test-bitree.c | 48 struct bt_root_t *tree = bt_create_tree(rn, compare, release); in ktest_bitree_case1()
|