memblock_double_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… memblock_double_array(9) πŸ’…

okay so bestie, welcome to the memblock_double_array(9) page from the Kernel API Manual. we're gonna get you comfy with it, no cap. 🫢


πŸŽ€ NAME πŸŽ€

memblock_double_array β€” double the size of the memblock regions array

✨ SYNOPSIS ✨

int __init_memblock memblock_double_array (struct memblock_type *type ,
phys_addr_t new_area_start , phys_addr_t new_area_size );

🌸 ARGUMENTS 🌸

  • type β€” the memblock type of the regions array that's getting doubled, slay.
  • new_area_start β€” starting address of the memory range to avoid overlap with. literally where it begins.
  • new_area_size β€” size of the memory range to avoid overlap with. how big it is, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: this function doubles the size of the type regions array. ✨

And the little plot twist is this: if memblock is being used to allocate memory for a new reserved regions array, and there's a previously allocated memory range [new_area_start, new_area_start + new_area_size] waiting to be reserved, then it makes sure the memory used by the new array does not overlap. highkey important, lowkey iconic.

πŸ”₯ RETURN πŸ”₯

  • 0 on success
  • -1 on failure

πŸ’– SEE ALSO πŸ’–


okay that's the whole page, bestie. this one came from ./mm, dated October 2026, and it's the memblock_double_array(9) manual page. go double those arrays responsibly πŸ’œπŸ«Ά

πŸ“¦ where this page comes from