add_rtas_mem_range(9)
π add_rtas_mem_range(9) β a Kernel API Manual moment β¨
okay bestie, so this is a page from the Kernel API Manual (add_rtas_mem_range(9), we been knew) and honestly it's short but it ATE. let's get into it π«Ά
πΈ NAME πΈ
add_rtas_mem_range β literally just adds the RTAS region to the memory ranges list you hand it. that's the whole vibe. no cap. π
β¨ SYNOPSIS β¨
int add_rtas_mem_range (struct crash_mem **mem_ranges );
like yes, that's it, that's the whole signature π
note the double pointer babe, struct crash_mem **, we are modifying the thing.
π ARGUMENTS π
mem_rangesβ the range list you want the memory range added to. it's the list, and it's astruct crash_mem **, so bestie's getting touched (affectionately) π¦
π DESCRIPTION π
okay so the function returns 0 on success β¨ and a negative errno on error π that's literally the entire description, i know, i know, brief king behaviour π but those are the facts and we respect them.
note:0= slay, negativeerrno= not slay. keep that in mind.
π₯ SEE ALSO π₯
the whole friend group is here, send the group chat:
- kernel file
./arch/powerpc/kexec/ranges.cβ that's the home base π
and then the icon squad of functions, all (9):
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_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 yeah that's the page π it lives in ./arch/powerpc/kexec and it's dated October 2026 πΈ the manual section tag is add_rtas_mem_range(9) obviously, our main character β mwah, go read the whole family, iykyk π§ββοΈπ
π¦ 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