---
name: "pskb_expand_head"
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/pskb_expand_head"
---

# pskb\_expand\_head(9)

reallocate header of sk\_buff

## NAME

pskb\_expand\_head - reallocate header of sk\_buff

## SYNOPSIS

**int pskb\_expand\_head(struct sk\_buff \*** *skb***, int** *nhead***, int** *ntail***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*skb*

buffer to reallocate

*nhead*

room to add at head

*ntail*

room to add at tail

*gfp\_mask*

allocation priority

## DESCRIPTION

Expands (or creates identical copy, if *nhead* and *ntail* are zero) header of *skb*. sk\_buff itself is not changed. sk\_buff MUST have reference count of 1. Returns zero in the case of success or error, if expansion failed. In the last case, sk\_buff is not changed.

All the pointers pointing into skb header may change and must be reloaded after call to this function.

## COPYRIGHT
