gen_pool_has_addr(9)
π 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 aboutsizeβ 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 atrue. 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 π:
gen_pool_create(9)gen_pool_add_owner(9)gen_pool_virt_to_phys(9)gen_pool_destroy(9)gen_pool_alloc_algo_owner(9)gen_pool_dma_alloc(9)gen_pool_dma_alloc_algo(9)gen_pool_dma_alloc_align(9)gen_pool_dma_zalloc(9)gen_pool_dma_zalloc_algo(9)gen_pool_dma_zalloc_align(9)gen_pool_free_owner(9)gen_pool_for_each_chunk(9)gen_pool_avail(9)gen_pool_size(9)gen_pool_set_algo(9)gen_pool_first_fit(9)gen_pool_first_fit_align(9)gen_pool_fixed_alloc(9)gen_pool_first_fit_order_align(9)gen_pool_best_fit(9)gen_pool_get(9)devm_gen_pool_create(9)of_gen_pool_get(9)
π 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
- 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