matos/core/alloc.h
2019-04-15 23:09:09 +02:00

18 lines
343 B
C

#pragma once
#include "paging.h"
#include "stdarg.h"
struct slabDesc {
vaddr_t page;
size_t size;
void *freeEl;
char full;
struct slabDesc *next;
struct slabDesc *prev;
};
int allocInit(void);
int allocBookSlab(size_t size, int selfContained);
void *malloc(size_t size);
void free(void* ptr);