memblock_add_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– memblock_add_node(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is memblock_add_node(9), and honestly? she's a baddie. this is the page for the function that literally adds a brand new memblock region inside a NUMA node. no cap.


✨ NAME ✨

memblock_add_node β€” add new memblock region within a NUMA node 🫢


🌸 SYNOPSIS 🌸

int __init_memblock memblock_add_node (phys_addr_t base , phys_addr_t
size , int nid , enum memblock_flags flags );

like, that's the whole signature. __init_memblock, returns an int, takes four args. iconic behavior tbh πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • base β€” the base address of the new region. where the vibe starts ✨
  • size β€” the size of the new region. how much room she's taking up πŸ’–
  • nid β€” the nid of the new region. that's her NUMA node, her home base 🏠
  • flags β€” the flags of the new region. her whole personality, basically 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she actually does: she adds a new memblock region, [base, base + size), into the "memory" type. like, the region is half-open β€” base is in, base + size is out. standard. slay πŸ”₯

for the mode details, she says "See memblock_add_range description" β€” so if you want the deep lore, that's where you go. iykyk πŸ‘‘


⭐ RETURN ⭐

0 on success, -errno on failure. no in-between, she's very binary about it πŸ’€


🌈 SEE ALSO 🌈

okay this list is LONG but every single one of these is on the page so we're listing all of them, periodt:

ngl that's a whole friend group. read them all, bestie, they're all worth it πŸ’œ

and that's the page!! mwah πŸ’‹ this one comes from source ./mm, dated October 2026 β€” so like, mark your calendars, she's stamped and official. go forth and add your nodes, queen πŸ‘‘βœ¨πŸŽ€

πŸ“¦ where this page comes from