---
name: "pskb_copy"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/pskb_copy"
---

# pskb\_copy(9)

create copy of an sk\_buff with private head.

## NAME

pskb\_copy - create copy of an sk\_buff with private head.

## SYNOPSIS

**struct sk\_buff \* pskb\_copy(struct sk\_buff \*** *skb***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*skb*

buffer to copy

*gfp\_mask*

allocation priority

## DESCRIPTION

Make a copy of both an sk\_buff and part of its data, located in header. Fragmented data remain shared. This is used when the caller wishes to modify only header of sk\_buff and needs private copy of the header to alter. Returns **NULL** on failure or the pointer to the buffer on success. The returned buffer has a reference count of 1.

## COPYRIGHT
