page_pool_dev_alloc_va(9)
π page_pool_dev_alloc_va β the kernel API manual, bestie edition β¨
okay so bestie, welcome to page_pool_dev_alloc_va(9) β yes that's the whole name, yes it's a mouthful, no we're not shortening it, it's iconic as is π
β¨ NAME β¨
page_pool_dev_alloc_va β allocate a page or a page fragment and hand you back its va. That's it. That's the whole job. slay π
πΈ SYNOPSIS πΈ
void * page_pool_dev_alloc_va (struct page_pool *pool , unsigned int
*size );
literally just those two args. no cap. π¦
π«Ά ARGUMENTS π«Ά
poolβ the pool you're allocating from. your source of pages, your main character, the whole vibe πsizeβ in as the requested size, out as the allocated size. it's giving double duty β you tell it what you want goin' in, it tells you what you actually got comin' out π
π DESCRIPTION π
so like, this function? it's just a thin wrapper around the page_pool_alloc API. that's the whole tea. β
it returns the va of the allocated page or page fragment β which is exactly what you'd expect from a thing called page_pool_dev_alloc_va, and honestly? we love a function that does what it says on the tin. periodt π₯
β RETURN β
you get the va for the allocated page or page fragment π
and if it can't? it returns NULL. so uh, check that, bestie π don't just rawdog the pointer, fr fr π
π§ SEE ALSO π§
- Kernel file
./include/net/page_pool/helpers.h page_pool allocator(9)page_pool_dev_alloc_pages(9)page_pool_dev_alloc_frag(9)page_pool_dev_alloc(9)page_pool_get_dma_dir(9)page_pool_fragment_page(9)page_pool_put_page(9)page_pool_put_full_page(9)page_pool_recycle_direct(9)page_pool_free_va(9)page_pool_get_dma_addr(9)page_pool_dma_sync_for_cpu(9)page_pool_is_unreadable(9)
like. the whole page_pool cinematic universe. go read all of 'em, iykyk πβ¨
okay that's the page!! this little love letter lives in ./include/net/page_pool and it's dated October 2026 β and it's for page_pool_dev_alloc_va(9) obviously π mwah, go allocate something cute, ily, bye!! π«Ά
π¦ 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