gen_pool_destroy(9)
π gen_pool_destroy(9) π
okay bestie, welcome to the kernel API manual, section 9 β this is the page for gen_pool_destroy, and it is exactly what it sounds like π the girl who takes out the trash of the memory world. no cap.
β¨ NAME β¨
gen_pool_destroy β destroy a special memory pool
like, actually destroy it. poof. gone. π
π¦ SYNOPSIS π¦
void gen_pool_destroy (struct gen_pool *pool );
that's it. that's the whole vibe. one arg, no return, void said what it said π
πΈ ARGUMENTS πΈ
poolβ the pool you wanna destroy π«Ά this is the special memory pool in question, the one getting its main character exit.
β DESCRIPTION β
so here's the tea β this function destroys the specified special memory pool β the one you passed in as pool, remember her β and before it does the deed it verifies that there are no outstanding allocations. like a bouncer checking the guest list before closing the club π
π lowkey important: it verifies there are no outstanding allocations. that check is in the description for a reason, bestie. no outstanding allocations. none. zero. don't make it weird.
π SEE ALSO π
Kernel file ./lib/genalloc.c β go read the source, it's giving open book exam π and also all of these icons β¨:
gen_pool_create(9)gen_pool_add_owner(9)gen_pool_virt_to_phys(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_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)
all 24 of them, in order, no skips, we don't leave the girls behind π
and that's the page!! shine on you chaotic unix angel πβ¨
this lil' drop came to you from ./lib, dated October 2026 β mwah, see u in the next man page ππ
π¦
π¦ 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