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).