page allocator for alloc()

This commit is contained in:
Matheus
2022-08-19 22:11:06 -03:00
parent af3e62d37c
commit f04d4b5a31
5 changed files with 181 additions and 8 deletions
+11
View File
@@ -0,0 +1,11 @@
#ifndef _PAGEALLOC_H_INCLUDE
#define _PAGEALLOC_H_INCLUDE
#include <stddef.h>
#include <stdbool.h>
void* pageallocator_alloc(size_t size);
bool pageallocator_free(void* addr);
void* pageallocator_realloc(void* addr, size_t size, bool* nonexistant);
#endif
+2 -1
View File
@@ -1,11 +1,12 @@
#ifndef _SLAB_H_INCLUDE
#define _SLAB_H_INCLUDE
#include <stddef.h>
void* slab_alloc(size_t);
void slab_free(void*);
size_t slab_getentrysize(void*);
void slab_init();
#endif