gen_pool_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 gen_pool_add(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, we're literally that girl now πŸ’…βœ¨


✨ NAME ✨

gen_pool_add β€” add a new chunk of special memory to the pool πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int gen_pool_add (struct gen_pool *pool , unsigned long addr , size_t
size , int nid );

like, that's the whole signature, no cap πŸ”₯


πŸ’– ARGUMENTS πŸ’–

  • pool β€” the pool you're adding your new memory chunk to 🫢
  • addr β€” the starting address of the memory chunk you're adding to the pool, literally where it begins
  • size β€” how big the memory chunk is, in bytes (yes, bytes, we're measuring fr fr)
  • nid β€” the node id of the node where the chunk structure and the bitmap should be allocated on, or -1 😌

🌈 DESCRIPTION 🌈

okay so the whole vibe here: you're adding a brand-new chunk of special memory to the pool you specified. that's it, that's the function ✨

it returns 0 on success, or a negative errno (-ve errno) on failure β€” so if you see a negative number, bestie, something went wrong 😭


🧚 SEE ALSO 🧚

go read those next, iykyk πŸ‘‘


and that's a wrap, bestie!! this page came to you courtesy of ./include/linux, dated October 2026, and yes the page name is still gen_pool_add(9) β€” slay, goodbye, mwah πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from