count_immovable_mem_regions(9)
π 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
- 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