matos/core/alloc.h

16 lines
269 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 initSlab(void);
void *malloc(size_t size);