summaryrefslogtreecommitdiff
path: root/include/kernel/kmalloc.h
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-05-27 13:53:52 -0500
committerDanny Holman <dholman@gymli.org>2024-05-27 13:53:52 -0500
commitaaf7355c5ededfcdc877c7f2989fb1ba02dfb848 (patch)
tree0c4588650fe1fc1fa1af2972353a2bc920cf1e68 /include/kernel/kmalloc.h
parent41cff28f5447b5f669db62ce2a73be98bc5bce37 (diff)
libk: create a subset libc for kernel use
Create a subset of the C library for use inside the kernel. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/kernel/kmalloc.h')
-rw-r--r--include/kernel/kmalloc.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/kernel/kmalloc.h b/include/kernel/kmalloc.h
deleted file mode 100644
index d8debd1..0000000
--- a/include/kernel/kmalloc.h
+++ /dev/null
@@ -1,18 +0,0 @@
-#ifndef KERNEL_KMALLOC_H
-#define KERNEL_KMALLOC_H
-
-#include <stdint.h>
-#include <stddef.h>
-
-struct mem_block {
- uintptr_t start;
- size_t size;
- int alloc;
- struct mem_block *next;
-};
-
-void kmalloc_init(void);
-void* kmalloc(size_t sz);
-void kfree(void *ptr);
-
-#endif