page_pool_dev_alloc_va(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🧚

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