gen_pool_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– gen_pool_create(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the gen_pool_create(9) page and it's literally about making a brand-new special memory pool. buckle up, it's short but it's iconic ✨


🌸 SYNOPSIS 🌸

struct gen_pool * gen_pool_create (int min_alloc_order , int nid );

that's the whole signature, no cap β€” it hands you back a struct gen_pool * and it takes exactly two ints. slay 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • min_alloc_order β€” the log base 2 of the number of bytes that each bitmap bit represents. yes, log base 2, like the exponent vibe β€” do the math, don't @ me πŸ’…
  • nid β€” the node id of the node your pool structure should be allocated on… or -1 if you're not about that node life πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: this creates a new special memory pool. and what's a special memory pool for, you ask? it manages special purpose memory β€” aka memory that is not managed by the regular kmalloc/kfree interface. so it's giving main character memory that kmalloc literally cannot touch. periodt πŸ’€βœ¨


πŸ”₯ SEE ALSO πŸ”₯

the whole gen_pool cinematic universe, bestie β€” go read these next πŸ‘‘

like, that's the entire friend group and they all ate πŸ’…πŸŒˆ


ngl there's not a ton of drama on this page β€” no warnings, no bugs section, just a clean little constructor. enjoy it while it lasts, bestie πŸ“

and that's the page!! this one came from ./lib and it's dated October 2026, filed under gen_pool_create(9) β€” mwah, go allocate something cute for me πŸ§šπŸ’œβ­

πŸ“¦ where this page comes from