add_tce_mem_ranges(9)
π add_tce_mem_ranges(9) β Kernel API Manual
okay so bestie, welcome to add_tce_mem_ranges, a little kernel API page from Kernel API Manual section 9 that is genuinely so specific and so iconic. it does exactly one thing and it does it well. let's get into it π
β¨ NAME β¨
add_tce_mem_ranges β adds tce-table range to the given memory ranges list.
like, that's the whole gig. it takes the tce-table range and puts it in the list. slay π
β¨ SYNOPSIS β¨
int add_tce_mem_ranges (struct crash_mem **mem_ranges );
the signature is literally right there, copy it exactly bestie, struct crash_mem **mem_ranges β double pointer, no cap π₯
β¨ ARGUMENTS β¨
mem_rangesβ the range list you're adding the memory range(s) to. that's it. that's the vibe check. it's the list, you're adding to it, go off π¦
β¨ DESCRIPTION β¨
so what happens? returns 0 on success, and a negative errno on error. periodt. that's the whole description, bestie, the manpage is refreshingly short and we respect it for that πΈ
ngl if you get a negative errno back you're in error territory β check it, don't sleep on it π
β¨ SEE ALSO β¨
the friend group π β all of these live in the 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_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_exclude_memory_ranges(9)get_usable_memory_ranges(9)get_crash_memory_ranges(9)
like, the whole range-adjacent squad is right there. iykyk π
and that's the page!! thank you for coming to my ted talk π«Ά this one's from ./arch/powerpc/kexec, dated October 2026 β mwah, bye bestie!! ππβ¨
π¦ 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