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:
parent
fdb319e96b
commit
823f811954
5 changed files with 106 additions and 28 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue