add_reserved_mem_ranges(9)
π add_reserved_mem_ranges β Kernel API Manual π
okay so bestie, welcome to the glow-up era of add_reserved_mem_ranges(9) β a Kernel API Manual moment, and honestly? iconic. this one is a little function from the powerpc kexec corner of the kernel, and it's giving "quietly does one job and does it well" main character energy. π¦
β¨ NAME β¨
add_reserved_mem_ranges β Adds "/reserved-ranges" regions exported by f/w to the given memory ranges list. πΈ
like, f/w hands over its reserved regions, and this function goes "say less" and files them into the range list. no cap.
π SYNOPSIS π
int add_reserved_mem_ranges (struct crash_mem **mem_ranges );
copy it exactly like that, bestie β vibes are flexible but signatures are not. π
π«Ά ARGUMENTS π«Ά
mem_rangesβ Range list to add the memory ranges to.
that's the whole bag. literally one pointer-to-pointer and it's off to the races. struct crash_mem ** β double pointer, double the "please don't dereference me wrong" energy. π
π DESCRIPTION π
Returns 0 on success, negative errno on error.
that's it. that's the paragraph. short, sweet, and absolutely not going to elaborate further, because that's all the manpage gives us β so we are not out here inventing lore. ngl, a zero-or-negative-errno return is such a clean little vibe check. 0 = slay, negative errno = the situation has entered its flop era. π
π SEE ALSO π
Kernel file ./arch/powerpc/kexec/ranges.c β this is where the whole squad lives, and the way that this list is long? obsessed. π₯
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)get_reserved_memory_ranges(9)get_exclude_memory_ranges(9)get_usable_memory_ranges(9)get_crash_memory_ranges(9)
go read them all, iykyk. every single one, no skipping. β¨
lowkey a reminder that this page only tells you what's written above β the returns, the argument, and the neighbours. no extra tips, no invented behaviour, we stay factual in this group chat. π
and that's the page, bestie! π§ it came to us from the <pink>Kernel API Manual</pink> (that's the manual name, folded in right up top like a proper little intro), sourced from <purple>./arch/powerpc/kexec and dated <cyan>October 2026</cyan>. periodt. π
π
π¦ 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