skb_frag_size_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… skb_frag_size_set πŸ’…

okay so real talk, this is a page from the Kernel API Manual, and it's genuinely one of the shortest glow-ups in the whole kernel doc set. we're talking a tiny little setter that lives in ./include/linux/skbuff.h and does exactly one (1) thing. no cap. it's giving "small but mighty" energy and honestly? obsessed. 🫢


✨ NAME ✨

skb_frag_size_set β€” sets the size of a skb fragment πŸ’«

like, that's the whole pitch bestie. the name literally tells you what it does, which is more than we can say for like half of Unix. iconic behavior, honestly.


🌸 SYNOPSIS 🌸

void skb_frag_size_set (skb_frag_t *frag , unsigned int size );

so you hand it a fragment, you hand it a size, and it returns void β€” meaning it does not come back to you with a value. it just does the thing and dips. no receipts, no follow-up text, nothing. main character energy fr fr. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • frag β€” the skb fragment 🌷 (that's the skb_frag_t * up there β€” the poor little thing whose size is about to get set)
  • size β€” the size of the fragment πŸ“ (unsigned int, no less β€” it's a whole unsigned integer of pure size)

that's it. two things. two whole arguments. she's low maintenance and we love that for her. πŸ’–

ngl if you came here looking for a spicy caveat or a weird edge case, there isn't one on this page β€” it's just the setter. short and sweet, periodt.

🌈 SEE ALSO 🌈

okay so this part is where it gets unhinged in the best way possible. this page's SEE ALSO section is a whole friend group. a whole squad. everybody showed up. i'm not skipping a single one, because every single one is on this page fr. πŸ’€

Kernel file ./include/linux/skbuff.h, and then all of these besties:

like. that's the whole extended universe. every one of them is sibling-coded to this tiny setter and they all said yes to the group photo. iykyk. πŸ¦‹


🌸 okay that's the page! hope it slayed for you bestie. and for the record, this whole vibe is brought to you by ./include/linux, dated October 2026, and the page you just read is skb_frag_size_set(9) β€” so if you ever need to find her again, that's the name to type. mwah πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from