gen_pool_has_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– gen_pool_has_addr(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this one's a tiny little function from the kernel, and honestly? she's a vibe check for addresses. let's get into it ✨


🌸 NAME 🌸

gen_pool_has_addr β€” checks if an address falls within the range of a pool

like... is this address in the pool or not? that's the whole gig 🫢


πŸŽ€ SYNOPSIS πŸŽ€

bool gen_pool_has_addr (struct gen_pool *pool , unsigned long start ,
       size_t size );

she takes three things and gives you back a bool. simple. iconic. no notes πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pool β€” the generic memory pool, aka the actual pool we're interrogating πŸ”
  • start β€” start address, the beginning of the region you're asking about
  • size β€” size of the region, so we know how far the range stretches πŸ“

⭐ DESCRIPTION ⭐

so here's the tea: this function checks if the range of addresses falls within the specified pool. that's it, that's the job πŸ’€

returns true if the entire range is contained in the pool, and false otherwise. and yes bestie, i said entire β€” it's all-or-nothing, no partial credit, no "well most of it's in there" situations πŸ™ˆ

fr fr: the whole range has to fit inside the pool for you to get a true. half in, half out = false. periodt.

πŸ”₯ SEE ALSO πŸ”₯

the kernel file is ./lib/genalloc.c, and here's the whole friend group β€” go say hi πŸ‘‘:


πŸ’œ sign-off πŸ’œ

and that's the page!! she lives in ./lib, dated October 2026, part of the Kernel API Manual, and you can find her under the name gen_pool_has_addr(9) anytime you need her πŸŒˆπŸ’– mwah, go check those addresses bestie 🧚✨

πŸ“¦ where this page comes from