lib: add rbtree data structure
This also switches the kmalloc allocator over to the new rbtree structure. As a balanced binary search tree, it is much more efficient than the previous method
This commit is contained in:
parent
d3e9b728dc
commit
4e36cfd90b
6 changed files with 430 additions and 42 deletions
|
|
@ -39,4 +39,6 @@ void *kmalloc(size_t size, uint64_t flags);
|
|||
void *kzalloc(size_t size, uint64_t flags);
|
||||
void kfree(void *ptr);
|
||||
|
||||
void slabtypes_init();
|
||||
|
||||
#endif /* _SLAB_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue