add_kernel_mem_range(9)
β¨ add_kernel_mem_range(9) β¨
okay bestie, welcome to the Kernel API Manual β this one's a little function from the PowerPC kexec corner of the kernel and honestly it's giving "small but essential" π
π NAME π
add_kernel_mem_range β literally just adds the kernel text region to whatever memory ranges list you hand it π«Ά
πΈ SYNOPSIS πΈ
int add_kernel_mem_range (struct crash_mem **mem_ranges );
π¦ ARGUMENTS π¦
mem_rangesβ the range list you want the memory range added to. that's it, that's the whole vibe β¨
π§ DESCRIPTION π§
so like, the whole personality of this function is its return value, no cap: it returns 0 on success, and a negative errno on error π that's the documented behaviour, and we are not adding lore that isn't there.
π SEE ALSO π
so many siblings, and we're listing every single one fr fr π
- Kernel file
./arch/powerpc/kexec/ranges.c 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_rtas_mem_range(9)add_opal_mem_range(9)add_reserved_mem_ranges(9)get_reserved_memory_ranges(9)get_exclude_memory_ranges(9)get_usable_memory_ranges(9)get_crash_memory_ranges(9)
π and that's the whole page, bestie β go read the source if you want the deep lore, this manpage keeps it cute and short π
sign-off time π this lil page lives at ./arch/powerpc/kexec, dated October 2026, and it's the add_kernel_mem_range(9) entry of the Kernel API Manual β slay, bye π
β¨
π¦ 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