count_immovable_mem_regions(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– count_immovable_mem_regions(9) πŸ’–

okay bestie, this is the Kernel API Manual page for count_immovable_mem_regions(9), and it’s lowkey iconic for such a tiny function. πŸŽ€


🌸 NAME 🌸

count_immovable_mem_regions β€” parse SRAT and cache the immovable memory regions into the immovable_mem array. ✨

✨ SYNOPSIS ✨

int count_immovable_mem_regions (void );

🫢 ARGUMENTS 🫢

  • void β€” no arguments. literally none, bestie. πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

It returns the number of immovable memory regions on success, and 0 on failure. 🫑

The failure vibes are:

  • Too many immovable memory regions
  • ACPI off or no SRAT found
  • No immovable memory region found.
no cap: if any of those three happen, you get 0. periodt. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./arch/x86/boot/compressed/acpi.c πŸ¦‹


mwah πŸ’‹ β€” this lil page came from source/version ./arch/x86/boot/compressed, dated October 2026, and it’s still serving count_immovable_mem_regions(9) realness. βœ¨πŸ‘‘

πŸ“¦ where this page comes from