---
name: "skb_pad"
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_pad"
---

# skb\_pad(9)

zero pad the tail of an skb

## NAME

skb\_pad - zero pad the tail of an skb

## SYNOPSIS

**int skb\_pad(struct sk\_buff \*** *skb***, int** *pad***);**

## ARGUMENTS

*skb*

buffer to pad

*pad*

space to pad

## DESCRIPTION

Ensure that a buffer is followed by a padding area that is zero filled. Used by network drivers which may DMA or transfer data beyond the buffer end onto the wire.

May return error in out of memory cases. The skb is freed on error.

## COPYRIGHT
