diff options
Diffstat (limited to 'kernel/include/kmalloc.h')
-rw-r--r-- | kernel/include/kmalloc.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/include/kmalloc.h b/kernel/include/kmalloc.h new file mode 100644 index 0000000..a409865 --- /dev/null +++ b/kernel/include/kmalloc.h @@ -0,0 +1,14 @@ +#pragma once + +#include <stdint.h> +#include <stddef.h> + +// Kernel memory allocator : one slab allocator for shared memory +// Thread-safe. + +void kmalloc_setup(); + +void* kmalloc(size_t sz); +void kfree(void* ptr); + +/* vim: set ts=4 sw=4 tw=0 noet :*/ |