gen_pool_add_owner(9)
okay bestie, welcome to the Kernel API Manual β this is the gen_pool_add_owner(9) page, and it's literally about adding a new chunk of special memory to the pool. No cap, it's giving allocator-core energy π
β¨
πΈ NAME πΈ
gen_pool_add_owner β add a new chunk of special memory to the pool π
π SYNOPSIS π
int gen_pool_add_owner (struct gen_pool *pool , unsigned long virt ,
phys_addr_t phys , size_t size , int nid , void *owner );
π ARGUMENTS π
poolβ the pool you're adding this new memory chunk to π«Άvirtβ virtual starting address of the memory chunk to add to the pool β¨physβ physical starting address of the memory chunk to add to the pool πΈsizeβ size in bytes of the memory chunk to add to the pool πnidβ node id of the node the chunk structure and bitmap should be allocated on, or-1π¦ownerβ private data the publisher would like to recall at alloc time π
πΌ DESCRIPTION πΌ
Add a new chunk of special memory to the specified pool. That's the whole assignment, bestie β iconic, focused, done. π
Returns 0 on success or a -ve errno on failure. So yeah: success is the cute little zero, and failure is negative errno territory β note it and move on π
π¦ SEE ALSO π¦
Kernel file ./lib/genalloc.c is the source, and the whole friend group is:
gen_pool_create(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)of_gen_pool_get(9)
made with π from the ./lib source/version, dated October 2026 β gen_pool_add_owner(9) out, slay your memory pool 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