mmap: generalize mmap

also add a range search function to ensure that memory allocations do
not overlap in virtual space
This commit is contained in:
Michael Shaw 2023-11-15 16:40:14 -05:00
commit 823f811954
5 changed files with 106 additions and 28 deletions

View file

@ -35,6 +35,7 @@ void rbt_delete(struct rbtree *tree, struct rbnode *del);
struct rbnode *rbt_search(struct rbtree *tree, uint64_t key);
struct rbnode *rbt_successor(struct rbnode *node);
uint64_t rbt_next_key(struct rbtree *tree);
struct rbnode *rbt_range_val2(struct rbtree *tree, uint64_t sval, uint64_t len);
void rbt_slab_init();