__skb_frag_unref(9)
π __skb_frag_unref β the kernel API manual, bestie edition π
okay so random fact but the manual name for this one is literally Kernel API Manual, and honestly? iconic. this whole page is about one tiny function that Does One Thing and does it slay β¨
πΈ NAME πΈ
__skb_frag_unref β release a reference on a paged fragment. that's it. that's the whole vibe. π«Ά
β¨ SYNOPSIS β¨
void __skb_frag_unref (skb_frag_t *frag , bool recycle );
no cap, that's the exact signature β don't come for me about the spacing, it's verbatim π
π¦ ARGUMENTS π¦
fragβ the paged fragment. that's the main character of this whole operation, the fragment whose reference we're dropping πrecycleβ aboolthat says whether to recycle the page if it was allocated viapage_pool. conditional queen behavior fr fr π
π DESCRIPTION π
so what does it actually do? it releases a reference on the paged fragment frag β or, alternatively, it recycles the page via the page_pool API. two paths, one function, and it's giving "i contain multitudes" π
like, one reference goes bye-bye. that's the tea. β
π SEE ALSO π
- Kernel file
./include/linux/skbuff_ref.h __skb_frag_ref(9)skb_frag_ref(9)skb_frag_unref(9)
go read those too, they're the friend group this function rolls with π§
ngl bestie, if you're here you're probably already deep in skb frags β stay hydrated, and remember to check whether recycle is what you actually want before you send it π
that's the whole page!! short and sweet and to the point π this came out of the kernel file under ./include/linux, dated October 2026 β mwah, periodt, see you in 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