skb_needs_linearize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

skb_needs_linearize β€” bestie, this one is literally just a vibe check: it asks "do we need to linearize this skb based on the device features we've got?" ✨

🌸 SYNOPSIS

bool skb_needs_linearize (struct sk_buff *skb , netdev_features_t features );

πŸŽ€ ARGUMENTS

  • skb β€” the socket buffer we're checking on 🫢 (this is the main character of the whole operation)
  • features β€” the net device features, aka the flex list of what your hardware can actually do πŸ’…

πŸ”₯ DESCRIPTION

So here's the tea: it returns true if either of these two things is going on πŸ‘‘

  1. the skb has a frag_list and the device doesn't support FRAGLIST, or
  2. the skb is fragmented and the device does not support SG.

That's it, that's the whole function. No cap β€” true means "yeah babe you gotta linearize", and anything else means you're chilling. 😭✨

πŸ¦‹ SEE ALSO

Oh honey, the friend group is huge, buckle up πŸ“ β€” all of these live in the kernel file ./include/linux/skbuff.h:


ok that's the whole page bestie, go forth and linearize responsibly πŸ§šβ€β™€οΈπŸ’œ

And for the receipts, this one came from ./include/linux, dated October 2026, and it's the skb_needs_linearize(9) page β€” mwah, stan forever πŸ’–πŸŽ€

πŸ“¦ where this page comes from