matos/core/alloc.h

18 lines
343 B
C
Raw Normal View History

2019-04-11 22:34:20 +02:00
#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);
2019-04-15 22:48:37 +02:00
int allocBookSlab(size_t size, int selfContained);
2019-04-11 22:34:20 +02:00
void *malloc(size_t size);
2019-04-15 23:09:09 +02:00
void free(void* ptr);