Initial commit - slab allocator, kmalloc, other re
factors
This commit is contained in:
parent
1dd7b8b07f
commit
4e40a040dd
39 changed files with 863 additions and 412 deletions
10
src/mm/page.h
Normal file
10
src/mm/page.h
Normal 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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue