1SKB_COPY(9)                    Linux Networking                    SKB_COPY(9)
2
3
4

NAME

6       skb_copy - create private copy of an sk_buff
7

SYNOPSIS

9       struct sk_buff * skb_copy(const struct sk_buff * skb, gfp_t gfp_mask);
10

ARGUMENTS

12       skb
13           buffer to copy
14
15       gfp_mask
16           allocation priority
17

DESCRIPTION

19       Make a copy of both an sk_buff and its data. This is used when the
20       caller wishes to modify the data and needs a private copy of the data
21       to alter. Returns NULL on failure or the pointer to the buffer on
22       success. The returned buffer has a reference count of 1.
23
24       As by-product this function converts non-linear sk_buff to linear one,
25       so that sk_buff becomes completely private and caller is allowed to
26       modify all the data of returned buffer. This means that this function
27       is not recommended for use in circumstances when only header is going
28       to be modified. Use pskb_copy instead.
29
31Kernel Hackers Manual 3.10         June 2019                       SKB_COPY(9)
Impressum