summaryrefslogtreecommitdiff
path: root/include/kernel/kmalloc.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/libk/kmalloc.h (renamed from include/kernel/kmalloc.h)7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/kernel/kmalloc.h b/include/libk/kmalloc.h
index d8debd1..6573d28 100644
--- a/include/kernel/kmalloc.h
+++ b/include/libk/kmalloc.h
@@ -1,14 +1,15 @@
-#ifndef KERNEL_KMALLOC_H
-#define KERNEL_KMALLOC_H
+#ifndef LIBK_KMALLOC_H
+#define LIBK_KMALLOC_H
#include <stdint.h>
#include <stddef.h>
struct mem_block {
- uintptr_t start;
+ void *start;
size_t size;
int alloc;
struct mem_block *next;
+ struct mem_block *prev;
};
void kmalloc_init(void);