summaryrefslogtreecommitdiff
path: root/src/kernel/malloc.h
diff options
context:
space:
mode:
authordzwdz2024-07-15 14:06:32 +0200
committerdzwdz2024-07-15 14:06:32 +0200
commit4fbb7e3c43440bd7eb4bf081c5be51dfe6f6e088 (patch)
treee656dfb788a209eee97c36691f6ccb97708bfe78 /src/kernel/malloc.h
parent0be35869d226aa2edc47dea07e0aca1c73f677d5 (diff)
kernel: free list page allocator
Yay for guaranteed O(1) insertions, even if iostress seems a bit slower.
Diffstat (limited to 'src/kernel/malloc.h')
-rw-r--r--src/kernel/malloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/malloc.h b/src/kernel/malloc.h
index efbd9c8..436d899 100644
--- a/src/kernel/malloc.h
+++ b/src/kernel/malloc.h
@@ -12,6 +12,8 @@ void mem_init(void *memtop);
void mem_reserve(void *addr, size_t len);
void mem_debugprint(void);
+void kmalloc_debugprint(void); /* internal, called by mem_debugprint */
+
// allocates `pages` consecutive pages
void *page_alloc(size_t pages);
// zeroes the allocated pages