From 766e7dbaf5baf1825f658ab8e7707f437de54c85 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Fri, 10 Feb 2023 19:11:27 +0100 Subject: [PATCH] docs: documented 'memory_map.h' --- .wiki/Kernel-documentation.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.wiki/Kernel-documentation.md b/.wiki/Kernel-documentation.md index 4aabb9f..69ec712 100644 --- a/.wiki/Kernel-documentation.md +++ b/.wiki/Kernel-documentation.md @@ -68,6 +68,13 @@ More information can be found on the limine project's [GitHub](https://github.co ## mm +### memory_map.h + +#### `memory_map_get_total_memory_size(boot_info*)` - function (uint64_t) +Calculates the total amount of memory available, by iterating over the memory map. +The size is stored in a static variable, so no matter how often you call this function, the size will only be calculated once. +It returns the total amount of memory in bytes. + ### page_frame.h This header provides the functions for basic interactions with pages (in the physical memory space).