__consume_stateless_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __consume_stateless_skb β€” Kernel API Manual ✨

okay bestie, welcome to the __consume_stateless_skb(9) glow-up 🫢 this is the Kernel API Manual's page for it, and no cap, it's a tiny one β€” but it's lowkey important, so let's get into it 🌸


πŸŽ€ NAME

__consume_stateless_skb β€” free an skbuff, assuming it is stateless πŸ’€βœ¨

Like, the whole personality of this function is "this skb is stateless, so just free it already," periodt.


πŸ¦‹ SYNOPSIS

void __consume_stateless_skb (struct sk_buff *skb );

that's it. that's the whole signature. iconic behavior honestly πŸ‘‘


🌸 ARGUMENTS

  • skb β€” buffer to free πŸ—‘οΈβœ¨ (yes queen, that's the one you're releasing)

πŸ’– DESCRIPTION

So it's alike consume_skb, but β€” and this is the main character detail β€” this variant assumes that this is the last skb reference and that all the head states have already been dropped.

Read that again and let it sink in, bestie: it assumes. It's not out here double-checking your vibes, it's not doing a vibe check on the head states, it just trusts you. So you better actually have dropped those head states and actually have the last reference, or it's giving "consequences" 😭πŸ”₯ No cap, this is a "you must be this sure" situation.


🌈 SEE ALSO

bestie the friend group is HUGE, look at this list, the skb family is literally everywhere πŸ’… β€” also shoutout to the kernel file ./net/core/skbuff.c 🧚


🫢 friendly reminder: this variant assumes it's the last skb reference and that all head states are already dropped. Please don't make it regret trusting you πŸ™ˆ

🌸 okay that's the whole page, hope it slayed for you! this one lives over in ./net/core, dated October 2026, and it's brought to you by the Kernel API Manual β€” mwah, go free those stateless skbs responsibly πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from