skb_cloned(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… skb_cloned (Kernel API Manual, section 9) πŸ¦‹

okay bestie, this page lives in the Kernel API Manual and it's a tiny little queen with a huge friend group, so buckle up πŸŽ€


✨ NAME ✨

skb_cloned β€” is the buffer a clone 🫢


🌸 SYNOPSIS 🌸

int skb_cloned (const struct sk_buff *skb );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the buffer you want to check, bestie. that's the one we're interrogating πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea β˜• β€” it returns true if the buffer was generated with skb_clone and it's one of multiple shared copies of that buffer. basically: this skb isn't an only child, it's got siblings, and they're all sharing the same data πŸ‘‘

Cloned buffers are shared data, which means under normal circumstances you must not write to them. not a vibe check you want to fail, ngl 😭 that's literally the whole warning. write to shared data and everyone's copy gets messed up. no cap.


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/skbuff.h, plus the entire extended universe of skb besties β€” every single one of them, we do not gatekeep here 🌈:


okay that's the whole page, you made it to the end, proud of you πŸ₯ΉπŸ’– this one's brought to you by the fine folks over at ./include/linux, dated October 2026 β€” slay, periodt, go check your clones before you write anything βœ¨πŸ‘‘

πŸ“¦ where this page comes from