of_gen_pool_get(9)
π« of_gen_pool_get β from the Kernel API Manual β¨
okay bestie, so this is a page straight out of the Kernel API Manual, and it's genuinely one of the shorter ones so we're gonna get through it in one go π«Ά
β¨ NAME β¨
of_gen_pool_get β literally just finds a pool by phandle property π
no cap, that's the whole mission statement
πΈ SYNOPSIS πΈ
struct gen_pool * of_gen_pool_get (struct device_node *np , const char
*propname , int index );
like, it hands you back a struct gen_pool * and if you're lucky it's not NULL π take the hint bestie
π ARGUMENTS π
npβ the device node. the actual node we're poking at π³propnameβ the property name, and yes it's the one holding the phandle(s), possibly several of them, plural, iconic πindexβ which slot you want out of that phandle array. it's an index. into the array. iykyk π₯
π¦ DESCRIPTION π¦
so what it does: it returns the pool that contains the chunk starting at the physical address of the device tree node pointed at by the phandle property β¨
and if it can't find that? NULL. not found, no pool, nothing, bye π that's the vibe check and it failed
π SEE ALSO π
the kernel file in question lives at ./lib/genalloc.c β go read it, it's giving main character energy π and then there's this whole family of friends:
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_fixed_alloc(9)gen_pool_first_fit_order_align(9)gen_pool_best_fit(9)gen_pool_get(9)devm_gen_pool_create(9)
like, the whole squad showed up. obsessed π§π
and that's the page, bestie!! π sourced from ./lib, dated October 2026 β mwah, catch you on the next manpage ππ
π¦ 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