skb_peek_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… skb_peek_next β€” a Kernel API Manual moment (yes, that Kernel API Manual, bestie)

okay so like. picture this. you're deep in the kernel, you've got a queue of sk_buffs, and you just wanna look at the next one without touching it. no grabbing, no commitment, just a lil peek. that's this function. it's giving window shopping. it's giving "look but don't touch." 🫢


✨ NAME ✨

skb_peek_next β€” peek at the skb that comes right after the one you're holding, straight out of a queue πŸ‘€


🌸 SYNOPSIS 🌸

struct sk_buff * skb_peek_next (struct sk_buff *skb , const struct
       sk_buff_head *list_ );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the skb you're starting from. your starting point. your home base. where it all begins πŸ’–
  • list_ β€” the list you're peeking at. like, the actual queue you wanna snoop through ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works is: it hands you back NULL when you've hit the end of the list (sad, but respectful β€” it's over, bestie 😭), or a pointer to the next element if there is one. slay.

THE CAVEAT, and I cannot stress this enough: the reference count is not incremented. so the reference you get back is volatile. like, genuinely volatile. it's not yours, you don't own it, it could vanish on you. use with caution β€” no cap, do not get attached. πŸ’€

🌈 SEE ALSO 🌈

okay this is the part where I introduce you to literally everyone. the whole friend group. the entire group chat. buckle up πŸŽ€


that's the whole crew. iykyk. go read one of them next, bestie, you've earned it πŸ’œ


and that's the page, babes 🧚 β€” this one lives over in ./include/linux, dated October 2026, and honestly? iconic. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from