sort_memory_ranges(9)
β¨ sort_memory_ranges(9) β¨
okay so bestie, welcome to the sort_memory_ranges page from the Kernel API Manual β section 9, the kernel-API girlies π
. this one's short and sweet, no cap.
π NAME π
sort_memory_ranges β literally sorts the given memory ranges list. that's it. that's the whole job. queen behavior π
π¦ SYNOPSIS π¦
void sort_memory_ranges (struct crash_mem *mem_rngs , bool merge );
like, copy it exactly bestie, don't @ me π
πΈ ARGUMENTS πΈ
mem_rngsβ the range list that's getting sorted. this is the main character of the whole function fr fr π«Άmergeβ abool. if it'strue, the list gets merged after the sorting happens. so: sort first, merge second, iykyk. if it's nottrue, no merging, just vibes β¨
π DESCRIPTION π
Returns nothing. like literally nothing, it's a void function, it just does the thing and dips π no return value to check, no exit status, no little treat for you at the end. the function ate and left no crumbs π
π₯ SEE ALSO π₯
collect them all, bestie β here's the whole friend group from 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)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_usable_memory_ranges(9)get_crash_memory_ranges(9)
π go read the source file too, it's giving ./arch/powerpc/kexec/ranges.c and it's highkey iconic.
that's the page bestie!! π this little gem lives in ./arch/powerpc/kexec and it's dated October 2026 β so like, mark your calendar, put it in your notes app, and slay the day away π
β¨π¦πΈπ
π¦ 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