gen_pool_size(9)
π gen_pool_size β Kernel API Manual β¨
okay so bestie, welcome to the gen_pool_size(9) page, straight out of the Kernel API Manual π β it's short, it's sweet, and it's giving "one job and it does it slayfully."
πΈ NAME πΈ
gen_pool_size β get size in bytes of memory managed by the pool π
β¨ SYNOPSIS β¨
size_t gen_pool_size (struct gen_pool *pool );
like, that's it. that's the whole vibe. one function, one pointer, one size_t coming back at you π«Ά
π¦ ARGUMENTS π¦
poolβ the pool you wanna get the size of. that's the one. the main character of this function call π
π DESCRIPTION π
Return size in bytes of memory managed by the pool.
fr fr that's the whole thing β it hands you back a size_t, and that number is the size, in bytes, of the memory your pool is managing. no cap, no side quests, no surprises πβ¨
π SEE ALSO π
the kernel file is ./lib/genalloc.c and honestly the whole genalloc friend group is here β 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_has_addr(9)gen_pool_avail(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)
bestie note π«Ά: this page lives in ./lib and it's dated October 2026 β so yes, it's basically from the future, iconic behavior honestly β
and that's a wrap on gen_pool_size(9) π
go forth and measure your pools, you absolute legend π§ββοΈπ
π¦ 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