documentation/kernel/mm/memory_map.h.md

410 B

memory_map.h

Functions to parse the memory map provided by the bootloader.

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. The total amount of memory is returned in bytes.