consume_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so you're reading the Kernel API Manual, bestie, and this page is literally about consume_skb β€” free an skbuff. that's the whole vibe. ✨


🌸 SYNOPSIS 🌸

void consume_skb (struct sk_buff *skb );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” buffer to free. that's the one, bestie 🫢

πŸ’– DESCRIPTION πŸ’–

Drop a ref to the buffer and free it if the usage count has hit zero. lowkey iconic behavior, no cap.

Functions identically to kfree_skb, but kfree_skb assumes that the frame is being dropped after a failure and notes that β€” and yep, that's where the sentence lands, don't come for me 😭. so consume_skb is the same deal, but it's not assuming failure. periodt. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./net/core/skbuff.c β€” and then the whole friend group shows up:


okay bye bestie, this page is from ./net/core, dated October 2026, and it's literally titled consume_skb(9) πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from