skb_prepare_seq_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– skb_prepare_seq_read β€” NAME ✨

Okay bestie, so this page is about skb_prepare_seq_read (kernel API manual, the skb_prepare_seq_read(9) one, iykyk) β€” and what it does is prepare a sequential read of skb data. That's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

Literal character-for-character, no cap:

void skb_prepare_seq_read (struct sk_buff *skb , unsigned int from ,
       unsigned int to , struct skb_seq_state *st );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the buffer you're reading from. the main character, literally. πŸ‘‘
  • from β€” the lower offset of the data you wanna read.
  • to β€” the upper offset of the data you wanna read. yes it's a range, slay. ✨
  • st β€” the state variable. she holds the state. that's her whole job. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So what it actually does: it initializes the state variable you passed in as st. That's it. That's the function. 🫢

⚠️ But listen β€” this one is non-negotiable: it must be called before invoking skb_seq_read for the first time. Like, before you even think about it. no cap. 😭

πŸ’… SEE ALSO πŸ’…

Kernel file ./net/core/skbuff.c β€” and here's the whole friend group, every single one, no skipping, fr fr:


That's the whole page, bestie β€” go read your skb data sequentially, you got this. πŸ’œ

source: ./net/core πŸŽ€ version/date situation: October 2026 β€” mwah, bye, catch you in the kernel tree 🌈⭐

πŸ“¦ where this page comes from