summaryrefslogtreecommitdiff
path: root/src/kernel/malloc.h
diff options
context:
space:
mode:
authordzwdz2024-07-14 16:39:43 +0200
committerdzwdz2024-07-14 16:39:43 +0200
commit8e403358b5a7ec3a5933257a95aa528c7f503ba0 (patch)
treeb60a0a132c340a5f56a83c8667417fb268b4a80a /src/kernel/malloc.h
parentc1d3ac750b8483c9a942d2fb5d5b7245d014e905 (diff)
kernel/malloc: clean up the code a little bit
The bitmap functions now accept page addresses so I don't have to handle raw bitmap indexes, which was kinda complex. kmalloc_sanity is now not visible to other code as it wasn't really that useful in the first place.
Diffstat (limited to 'src/kernel/malloc.h')
-rw-r--r--src/kernel/malloc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/kernel/malloc.h b/src/kernel/malloc.h
index 3469f5f..efbd9c8 100644
--- a/src/kernel/malloc.h
+++ b/src/kernel/malloc.h
@@ -20,7 +20,6 @@ void *page_zalloc(size_t pages);
// frees `pages` consecutive pages starting from *first
void page_free(void *first, size_t pages);
-void kmalloc_sanity(const void *addr);
void *kmalloc(size_t len, const char *desc);
void kfree(void *ptr);