add_htab_mem_range(9)
β¨ add_htab_mem_range(9) β¨
okay bestie, so this one is from the Kernel API Manual and it's giving "tiny function, very specific job" energy and honestly? i respect it. π
πΈ NAME πΈ
add_htab_mem_range β adds the htab range to the given memory ranges list, if it exists. that's it. that's the whole gig. and she ate. π
π¦ SYNOPSIS π¦
int add_htab_mem_range (struct crash_mem **mem_ranges );
like literally that's the whole signature. short and iconic. π
π ARGUMENTS π
mem_rangesβ the range list you're adding the memory range to. that's your canvas, your little memory-range scrapbook, your main character parameter. π«Ά
π DESCRIPTION π
okay so the actual deal here: it returns 0 on success, and a negative errno on error. that's the full contract, no cap. so check your return value, bestie β negative numbers are the villain arc and you do not want to be in that timeline. π
π₯ SEE ALSO π₯
the whole friend group, fr fr β these all 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_tce_mem_ranges(9)add_initrd_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 a whole squad of range functions, all holding hands in ./arch/powerpc/kexec. πβ¨
ngl this one's a short read, but every detail matters, so don't skip the errno check. π
later bestie π«Ά this lil page came from the ./arch/powerpc/kexec source, dated October 2026 β stay slay, stay sorted, and may all your ranges merge cleanly. πππ¦
π¦ 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