Initial commit - slab allocator, kmalloc, other re

factors
This commit is contained in:
ssimnb 2026-01-22 08:05:47 +01:00
parent 1dd7b8b07f
commit 4e40a040dd
39 changed files with 863 additions and 412 deletions

10
src/mm/page.h Normal file
View file

@ -0,0 +1,10 @@
#include "slab.h"
typedef struct page {
struct ma_bufctl *bufctls; // The bufctls associated with the slab stored on this page. NULL if page isn't associated with a slab
struct ma_slab *slab;
}page;
struct page *get_page(void *addr);
void init_page_array();