add mmap MAP_FIXED wrapper for dropping slabs

This commit is contained in:
Daniel Micay 2018-08-29 13:04:52 -04:00
parent 0e2f3d1015
commit 00b2613e16
2 changed files with 12 additions and 0 deletions

View file

@ -4,6 +4,7 @@
#include <stddef.h>
void *memory_map(size_t size);
int memory_map_fixed(void *ptr, size_t size);
int memory_unmap(void *ptr, size_t size);
int memory_protect_rw(void *ptr, size_t size);
int memory_protect_ro(void *ptr, size_t size);