skb_morph(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… skb_morph β€” a Kernel API Manual moment (section 9, kernel land, slay)

okay so bestie, welcome to skb_morph(9) ✨ literally the glow-up page for one very specific kernel function. no cap, it's short, it's cute, it's giving "small but mighty." let's get into it πŸŽ€


🌸 NAME 🌸

skb_morph β€” morph one skb into another πŸ¦‹

like. it literally morphs. the name ate and left no crumbs.


✨ SYNOPSIS ✨

struct sk_buff * skb_morph (struct sk_buff *dst , struct sk_buff *src );

that signature is the whole vibe check: you hand it two pointers to struct sk_buff and it hands one back 🫢


πŸ’– ARGUMENTS πŸ’–

  • dst β€” the skb that receives the contents. she's the destination, the main character, the one getting the makeover πŸ‘‘
  • src β€” the skb that supplies the contents. she's the source, the provider, the one lending out the lore πŸ’œ

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea, bestie: this is identical to skb_clone β€” like, same energy, same behaviour β€” except that the target skb is supplied by the user. you're not getting a fresh target handed to you; you're bringing your own dst to the party πŸŽ‰

and then: the target skb is returned upon exit. that's it. that's the whole function. she comes back to you. periodt πŸ’…

ngl, this one is short β€” but that's not a red flag, that's just a focused icon doing exactly one job and doing it well ✨

🌈 SEE ALSO 🌈

Kernel file: ./net/core/skbuff.c β€” and the whole friend group chat of related functions, all present and accounted for, fr fr:

iykyk πŸ’€ that's a lot of cousins at the family reunion, but every single one showed up 🌸


🧚 sign-off 🧚

this page lives in the source dir ./net/core and it's dated October 2026 β€” so bookmark it, screenshot it, send it to the group chat πŸ’Œ stay morphed, bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from