get_exclude_memory_ranges(9)
β¨ get_exclude_memory_ranges(9) β¨
okay so bestie, welcome to the Kernel API Manual β this is the page for get_exclude_memory_ranges, and honestly? it's giving "the VIP bouncer of memory ranges" π
π NAME π
get_exclude_memory_ranges β grab the list of exclude memory ranges. no cap, this list is the do not touch section: it includes regions like opal/rtas, tce-table, initrd, kernel, and htab, all of which should be avoided while you're setting up kexec load segments. like, hands off, these are NOT for you π«Ά
πΈ SYNOPSIS πΈ
int get_exclude_memory_ranges (struct crash_mem **mem_ranges );
π¦ ARGUMENTS π¦
mem_rangesβ the range list you're adding the memory ranges to. that's the destination, bestie, it's where everything gets dropped off π¦
β DESCRIPTION β
here's the whole vibe check: it returns 0 on success, and a negative errno on error. that's it, that's the tea β periodt.
π SEE ALSO π
bestie this is the whole friend group, iykyk π«Ά
Kernel file ./arch/powerpc/kexec/ranges.c β plus these iconic functions:
get_max_nr_ranges(9)get_mem_rngs_size(9)__add_mem_range(9)__merge_memory_ranges(9)sort_memory_ranges(9)realloc_mem_ranges(9)add_mem_range(9)add_tce_mem_ranges(9)add_initrd_mem_range(9)add_htab_mem_range(9)add_kernel_mem_range(9)add_rtas_mem_range(9)add_opal_mem_range(9)add_reserved_mem_ranges(9)get_reserved_memory_ranges(9)get_usable_memory_ranges(9)get_crash_memory_ranges(9)
π and that's a wrap, angel! this lil slice of the manual lives down in ./arch/powerpc/kexec, and it's dated October 2026. go forth and exclude those ranges responsibly ππβ¨
π¦ 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