efi_memmap_insert(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈


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