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:
Michael Shaw 2023-05-10 17:59:46 -04:00
commit 4e36cfd90b
6 changed files with 430 additions and 42 deletions

View file

@ -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_ */