efi_memmap_insert(9)
π efi_memmap_insert β a Kernel API Manual moment
okay bestie, so this is efi_memmap_insert(9) from the Kernel API Manual, and it's literally the glow-up your EFI memory map has been waiting for β¨
β¨ NAME β¨
efi_memmap_insert β insert a memory region in an EFI memmap π«Ά
π SYNOPSIS π
void efi_memmap_insert (struct efi_memory_map *old_memmap , void *buf ,
struct efi_mem_range *mem );
like. that's the whole vibe. three args, no notes π
πΈ ARGUMENTS πΈ
old_memmapβ the existing EFI memory map structure, aka the one you already have πbufβ address of the buffer where the new map gets stored, this is the fresh fit π₯memβ the memory map entry you're inserting, the main character of this whole operation β
π¦ DESCRIPTION π¦
so before you just start shoving stuff in β it is suggested that you call efi_memmap_split_count first to see how large buf needs to be π§ like, size check your buffer, babe. no cap.
π SEE ALSO π
- Kernel file
./arch/x86/platform/efi/memmap.c efi_memmap_alloc(9)efi_memmap_install(9)efi_memmap_split_count(9)
ok that's the whole page, go forth and insert responsibly π
and that's the sign-off bestie β this gem lives in ./arch/x86/platform/efi and it's dated October 2026, slay πβ¨
π¦ 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