sk_eat_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sk_eat_skb β€” the Kernel API Manual, but make it make sense ✨

okay so bestie, you found sk_eat_skb in the kernel API manual (section 9, networking-era energy 🫢) and you're like "what does it mean to eat a socket buffer??" and honestly? valid question. let's get into it πŸ’–


🌸 NAME 🌸

sk_eat_skb β€” Release a skb if it is no longer needed

like, the skb gets released only if it's not needed anymore. it's giving "if you don't want those fries, I'll finish them" energy πŸ“


✨ SYNOPSIS ✨

void sk_eat_skb (struct sock *sk , struct sk_buff *skb );

that's the whole signature. returns void, so no return value to check, no "did it work" drama. iconic, honestly πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” the socket to eat this skb from 🍽️
  • skb β€” the socket buffer to eat πŸ˜‹

πŸ¦‹ DESCRIPTION πŸ¦‹

This routine must be called with interrupts disabled or with the socket locked, so that the sk_buff queue operation is ok.

bestie, this is a hard requirement, not a vibe suggestion πŸ’€ call it with interrupts disabled or with the socket locked, or the queue operation will not be ok. no cap, respect the locking rule.

πŸ’œ SEE ALSO πŸ’œ

all the friends in the group chat, aka the kernel file ./include/net/sock.h fam:


⭐ the sign-off ⭐

this page lives in ./include/net and the date on it is October 2026 🌈 so when you're out here calling sk_eat_skb, remember: interrupts off or socket locked, periodt πŸ’… go slay those skbs bestie πŸ’–βœ¨

πŸ“¦ where this page comes from