mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
page allocator for alloc()
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user