From 2d30c29610be321c8e4374ec55ccb66fcd6e8771 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Sun, 12 Feb 2023 18:01:49 +0100 Subject: [PATCH] docs: documented global kernel heap bindings --- .wiki/Kernel-documentation.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.wiki/Kernel-documentation.md b/.wiki/Kernel-documentation.md index f277845..0deb925 100644 --- a/.wiki/Kernel-documentation.md +++ b/.wiki/Kernel-documentation.md @@ -589,6 +589,17 @@ Returns **false** if there is a different byte. Returns **true** if the data is the same. There is a similar function on linux called _memcmp_. +#### `memory_allocate(size)` - function (void*) +Returns the address to a buffer, that is at least **_size_** bytes big. +On linux this function is called _malloc_. + +#### `memory_free(address)` - function (void) +The buffer at address, this buffer needs to be a buffer, that was created with `memory_allocate`. +On linux this function is called _free_. + +#### `memory_allocator_init(base)` - function (void) +This initializes the heap, where `memory_allocate` allocates memory. + ### panic.h Ahhhhh - the kernel is burning!