of_gen_pool_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« of_gen_pool_get β€” from the Kernel API Manual ✨

okay bestie, so this is a page straight out of the Kernel API Manual, and it's genuinely one of the shorter ones so we're gonna get through it in one go 🫢

✨ NAME ✨

of_gen_pool_get β€” literally just finds a pool by phandle property πŸ’… no cap, that's the whole mission statement

🌸 SYNOPSIS 🌸

struct gen_pool * of_gen_pool_get (struct device_node *np , const char
*propname , int index );

like, it hands you back a struct gen_pool * and if you're lucky it's not NULL 😭 take the hint bestie

πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” the device node. the actual node we're poking at 🌳
  • propname β€” the property name, and yes it's the one holding the phandle(s), possibly several of them, plural, iconic πŸ‘‘
  • index β€” which slot you want out of that phandle array. it's an index. into the array. iykyk πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does: it returns the pool that contains the chunk starting at the physical address of the device tree node pointed at by the phandle property ✨

and if it can't find that? NULL. not found, no pool, nothing, bye πŸ’€ that's the vibe check and it failed

🌈 SEE ALSO 🌈

the kernel file in question lives at ./lib/genalloc.c β€” go read it, it's giving main character energy πŸ“– and then there's this whole family of friends:

like, the whole squad showed up. obsessed πŸ§šπŸ’œ


and that's the page, bestie!! πŸ“ sourced from ./lib, dated October 2026 β€” mwah, catch you on the next manpage πŸ’–πŸŽ€

πŸ“¦ where this page comes from