__skb_dequeue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __skb_dequeue β€” remove from the head of the queue ✨

okay bestie, this one is a manual page from the Kernel API Manual and it's called __skb_dequeue(9) β€” iykyk, the double-underscore version, which is the version that does not hold your hand about locking. let's get into it 🫢


🌸 SYNOPSIS 🌸

struct sk_buff * __skb_dequeue (struct sk_buff_head *list );

like… that's the whole thing. one function, one argument, returns a struct sk_buff *. slay πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • list β€” the list you're dequeuing from. that's it, that's the argument. she's a struct sk_buff_head * and she's the one getting her head popped off. literally. πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

okay so the whole vibe here: this function removes the head of the list. one item, off the front, done. main character energy πŸ‘‘

the returned item is the head item… or NULL if the list is empty. so like, do check before you dereference it, bestie, no cap. πŸ™ˆ

⚠️ THE IMPORTANT PART, FR FR: this function does not take any locks. none. zero. it's lockless by design, so it must be used with appropriate locks held only. if you call this without the right locks held, that's not a vibe check, that's a you-problem. please hold your locks. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

okay so the source file is ./include/linux/skbuff.h β€” that's the one you want to go read if you're the kind of girl who reads headers for fun (me, I'm that girl 🧚). and then the whole extended skb friend group, in order:

that's the whole squad, no one left out, we don't do that here πŸ’œ


πŸ’– cute sign-off πŸ’–

okay that's the page!! this lil guy lives in the kernel source tree at ./include/linux, and this particular printing is dated October 2026, titled __skb_dequeue(9) in the Kernel API Manual. go hold your locks and dequeue responsibly, bestie β€” love u, bye!! πŸŽ€βœ¨πŸ¦‹πŸ’…

πŸ“¦ where this page comes from