get_usable_memory_ranges(9)
π get_usable_memory_ranges(9) Β· Kernel API Manual π
okay bestie, welcome to the get_usable_memory_ranges(9) page from the Kernel API Manual β we're getting into usable memory ranges and it's giving kernel-internals main character energy β¨
πΈ NAME πΈ
get_usable_memory_ranges β Get usable memory ranges. This list includes regions like crashkernel, opal/rtas & tce-table, that kdump kernel could use.
π¦ SYNOPSIS π¦
int get_usable_memory_ranges (struct crash_mem **mem_ranges );
π ARGUMENTS π
mem_rangesβ the range list to add the memory ranges to. Yep, that's thestruct crash_mem **situation, bestie π«Ά
π DESCRIPTION π
Returns 0 on success, negative errno on error. That's the whole return contract, periodt πβ¨
π SEE ALSO π
Kernel file ./arch/powerpc/kexec/ranges.c is the home base π , and these are the sibling functions to check out:
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)add_reserved_mem_ranges(9)get_reserved_memory_ranges(9)get_exclude_memory_ranges(9)get_crash_memory_ranges(9)
okay bye bestie π β this page is from source/version ./arch/powerpc/kexec, dated October 2026 β¨
π¦ 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