efi_get_memory_map(9)
πΈ efi_get_memory_map(9) πΈ
okay so bestie, welcome to the Kernel API Manual β yes, THE kernel API manual, we're doing big things today π this one's all about grabbing yourself a memory map, and it's honestly kind of iconic.
β¨ NAME β¨
efi_get_memory_map β get memory map πΊοΈ (that's it, that's the whole vibe)
π SYNOPSIS π
efi_status_t efi_get_memory_map (struct efi_boot_memmap **map , bool
install_cfg_tbl );
π¦ ARGUMENTS π¦
mapβ a pointer to a memory map pointer, and that's where the newly allocated memory map gets assigned fr fr. it's pointer-to-a-pointer, she's layered, she's complex, we love her π«Άinstall_cfg_tblβ aboolthat decides whether or not you're installing the boot memory map as a configuration table. yes or no, bestie, no in-between π
π DESCRIPTION π
so what does she actually DO? literally just retrieves the UEFI memory map. that's the whole personality π
but here's the detail you can't skip: the allocated memory leaves room for up to EFI_MMAP_NR_SLACK_SLOTS additional memory map entries β so there's built-in wiggle room, she's extra in the best way, main character energy honestly β¨
β RETURN β
status code. that's the answer, she returns a status code π
π SEE ALSO π
- Kernel file
./drivers/firmware/efi/libstub/mem.c efi_allocate_pages(9)efi_free(9)efi_low_alloc_above(9)
go read those too, iykyk π
kay that's the whole page bestie, you ate that π
this lil gem lives in ./drivers/firmware/efi/libstub, dated October 2026, and it's efi_get_memory_map(9) β go forth and map some memory, mwah ππ§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms