diff options
author | Danny Holman <dholman@gymli.org> | 2024-05-27 13:53:52 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-05-27 13:53:52 -0500 |
commit | aaf7355c5ededfcdc877c7f2989fb1ba02dfb848 (patch) | |
tree | 0c4588650fe1fc1fa1af2972353a2bc920cf1e68 /include/libk/kmalloc.h | |
parent | kernel: sched: add a flag that is set on init (diff) | |
download | box-aaf7355c5ededfcdc877c7f2989fb1ba02dfb848.tar.gz box-aaf7355c5ededfcdc877c7f2989fb1ba02dfb848.tar.zst box-aaf7355c5ededfcdc877c7f2989fb1ba02dfb848.zip |
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 '')
-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); |