pskb_copy(9)

pskb_copy9

Create copy of an sk_buff with private head.

Usage

struct sk_buff * pskb_copy(struct sk_buff * skb, gfp_t gfp_mask);

Arguments

skb

buffer to copy

gfp_mask

allocation priority

Overview

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.

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.