realloc_mem_ranges(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ”—


xoxo, your local Unix bestie πŸ’‹ β€” source/version: ./arch/powerpc/kexec; date: October 2026; page: realloc_mem_ranges(9) 🫢

πŸ“¦ where this page comes from