gen_pool_add(9)
πΈ 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 beginssizeβ 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 π§
- Kernel file
./include/linux/genalloc.h genpool_algo_t(9)gen_pool_alloc(9)
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
- 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