1 2 3 4 5 6 7 8 9 10 11 12 13 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 :*/