add_reserved_mem_ranges(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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. πŸ”₯

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