page_pool_recycle_direct(9)
β¨ page_pool_recycle_direct π
okay so bestie, this is a page in the Kernel API Manual (yes, the actual kernel man pages, we're fancy now π) and it's about page_pool_recycle_direct β literally the function that drops a reference on a page pool page. sit down, drink your iced coffee, we're learning πΈ
π¦ SYNOPSIS
void page_pool_recycle_direct (struct page_pool *pool , struct page
*page );
that's the whole signature, no cap. she takes two things and returns void β nothing back, she's not about that return-value life π
π ARGUMENTS
poolβ the pool your page came from in the first place. like, the origin pool. you gotta remember where you got it from, that's just manners π«Άpageβ the page you're releasing a reference on. bye bestie, releasing you back π¦
π₯ DESCRIPTION
so this one is similar to page_pool_put_full_page β like, they're siblings, same energy β but with one huge difference: the caller must guarantee safe context (think NAPI, that kind of thing) π
why? because she recycles the page directly into the pool fast cache. no detours, no scenic route, straight into the fast cache. and because she's that fast and that direct, you cannot just call her from anywhere β if you don't actually have that safe context, that's on you, and we don't do that here π
β οΈ real talk: "caller must guarantee safe context" is not a suggestion. it's the whole vibe check. get it wrong and you're in undefined-behaviour territory, no cap π
β 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_dev_alloc_va(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_free_va(9)page_pool_get_dma_addr(9)page_pool_dma_sync_for_cpu(9)page_pool_is_unreadable(9)
that's a whole friend group right there, go say hi πβ¨
and that's the page, bestie π§ this cutie lives in ./include/net/page_pool and she was dated October 2026 β yes, the future, main character energy fr fr ππ
π¦ 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