skb_dequeue_tail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… skb_dequeue_tail β€” kernel API manual, but make it cute

okay so bestie, you opened the man page for skb_dequeue_tail and honestly? iconic choice. this is a <pink>Kernel API Manual</pink> entry and we're gonna get you fluent in it, no cap 🫢


✨ NAME ✨

skb_dequeue_tail β€” remove from the tail of the queue πŸŽ€


🌸 SYNOPSIS 🌸

struct sk_buff * skb_dequeue_tail (struct sk_buff_head *list );

literally just hand it the list and it hands you back an skb. main character function energy ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • list β€” the list to dequeue from. that's it, that's the whole argument. she's low maintenance πŸ’…

πŸ’– DESCRIPTION πŸ’–

so the whole vibe here: it removes the tail of the list. yes, the tail, not the head β€” don't get it twisted πŸ™ˆ

the list lock gets taken, which is the slay part, because it means you can use this function safely alongside other locking list functions. no chaotic race conditions, we behave in this house 🧚

it returns the tail item, or NULL if the list is empty. that's the whole deal. simple, clean, effective πŸ”₯

ngl, always vibe check that return value β€” NULL means empty list, not a free pass to dereference πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./net/core/skbuff.c, plus this absolute stacked lineup of friends:

like, that's a whole friend group and every single one of them is invited πŸŽ‰


that's the whole page bestie, go forth and dequeue responsibly πŸ’œ

this lil number lives in ./net/core and it's dated October 2026 β€” so yes, your fave documentation is timestamped and gorgeous, periodt. πŸ“β­

πŸ“¦ where this page comes from