realloc_mem_ranges(9)
π NAME π
okay so bestie, this is realloc_mem_ranges(9) from the Kernel API Manual β and she's here to reallocate mem_ranges with the size incremented by MEM_RANGE_CHUNK_SZ π
. Also, it frees up the old memory, if memory allocation fails π«Ά. Like, that part is important, no cap.
π οΈ SYNOPSIS π οΈ
struct crash_mem * realloc_mem_ranges (struct crash_mem **mem_ranges );
That signature is verbatim, bestie β code does not get the group-chat remix treatment π§.
π ARGUMENTS π
mem_rangesβ memory ranges to reallocate. That's the whole argument list, and yes, it's serving main-character energy π.
β¨ DESCRIPTION β¨
On success, it returns a pointer to the reallocated memory. Otherwise, it returns NULL π. That's the vibe: pointer when it works, NULL when it doesn't. Periodt.
quick reminder: the NAME section says it frees up the old memory, if memory allocation fails. So that's fr fr part of the deal π.
π SEE ALSO π
- 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)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)
xoxo, your local Unix bestie π β source/version: ./arch/powerpc/kexec; date: October 2026; page: realloc_mem_ranges(9) π«Ά
π¦ 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