gen_pool_fixed_alloc(9)
π gen_pool_fixed_alloc(9) β the Kernel API Manual moment
okay so first things first, bestie: this whole page is from the Kernel API Manual, section 9, and the star of the show is gen_pool_fixed_alloc. periodt. π
β¨ NAME β¨
gen_pool_fixed_alloc β reserve a specific region πΈ
like, you're not out here vibing with whatever region the allocator feels like handing you. you are choosing. main character energy fr fr.
π¦ SYNOPSIS π¦
unsigned long gen_pool_fixed_alloc (unsigned long *map , unsigned long
size , unsigned long start , unsigned int nr , void *data , struct
gen_pool *pool , unsigned long start_addr );
look at her. seven arguments. she's that girl and she knows it. π
π ARGUMENTS π
mapβ the address to base the search on. it's the whole map of the situation, iykyk πΊοΈsizeβ the bitmap size, measured in bits. yes, bits. not bytes. bits. be normal about it β¨startβ the bitnumber to start searching at, like your little starting point before you go looking for a spot πnrβ the number of zeroed bits we're looking for. so basically how many clear bits you need to snatch up π«Άdataβ data for alignment. it's the alignment info, doing alignment things π§poolβ pool to get order from, the actual pool we're pulling from πstart_addrβ not used in this function. literally not used. she's just there. sitting pretty. iconic honestly π
π₯ SEE ALSO π₯
lowkey the whole gen_pool family reunion is happening here, so lemme introduce everyone:
Kernel file ./lib/genalloc.c β¨
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_size(9)gen_pool_set_algo(9)gen_pool_first_fit(9)gen_pool_first_fit_align(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)
not me listing literally all 24 of them because every single one matters π
okay that's the whole page bestie, go reserve your specific region and slay π¦π
and that's a wrap on this little ./lib cutie from October 2026 β gen_pool_fixed_alloc(9), out. πβ¨
π¦ 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