---
name: "skb_trim"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/skb_trim"
---

# skb\_trim(9)

remove end from a buffer

## NAME

skb\_trim - remove end from a buffer

## SYNOPSIS

**void skb\_trim(struct sk\_buff \*** *skb***, unsigned int** *len***);**

## ARGUMENTS

*skb*

buffer to alter

*len*

new length

## DESCRIPTION

Cut the length of a buffer down by removing data from the tail. If the buffer is already under the length specified it is not modified. The skb must be linear.

## COPYRIGHT
