documentation/kernel/mm/memory_map.h.md

10 lines
410 B
Markdown
Raw Normal View History

2023-05-28 17:16:43 +00:00
# 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.