pskb_trim_unique(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pskb_trim_unique(9) πŸ’…

okay bestie, welcome to the pskb_trim_unique(9) page from the Kernel API Manual β€” it's short, iconic, and lowkey doing exactly one job. 🫢✨

🌸 NAME 🌸

pskb_trim_unique β€” remove end from a paged unique (not cloned) buffer πŸ’…

✨ SYNOPSIS ✨

the whole signature is giving:

void pskb_trim_unique (struct sk_buff *skb , unsigned int len );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” buffer to alter πŸ› οΈ
  • len β€” new length πŸ“

πŸ’– DESCRIPTION πŸ’–

okay so this is literally identical to pskb_trim, except that the caller knows that the skb is not cloned, so we should never get an error due to out-of-memory. that's the whole plot. no cap, no drama, just a paged unique buffer getting its end removed. πŸ’…βœ¨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/skbuff.h is the main character, and the whole entourage is:


with love from the kernel source at ./include/linux, stamped October 2026 β€” that's the footer, bestie, not a drill πŸ’–βœ¨πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from