skb_expand_head(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay bestie, welcome to skb_expand_head(9) from the Kernel API Manual β€” this is the page about reallocating the header of &sk_buff. Periodt.

  • skb_expand_head β€” reallocate header of &sk_buff.

✨ SYNOPSIS ✨

struct sk_buff * skb_expand_head (struct sk_buff *skb , unsigned int
       headroom );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the buffer you're reallocating, bestie.
  • headroom β€” the needed headroom. That's the whole vibe.

πŸ¦‹ DESCRIPTION πŸ¦‹

So unlike skb_realloc_headroom, this one does not allocate a new skb if it can avoid it β€” highkey efficient. It copies skb->sk to the new skb as needed, and if things fail, it frees the original skb. πŸ’…

It expects increased headroom and generates a warning otherwise. Like, don't come at it with less headroom unless you want the warning vibe check. 😭


🌈 SEE ALSO 🌈

Kernel file ./net/core/skbuff.c β€” and the whole see-also friend group is giving linked-list energy:

🫢 and that's the tea: source/version ./net/core, date October 2026, manual skb_expand_head(9). Bye bestie! πŸ’–

πŸ“¦ where this page comes from