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

NAME

6       skb_clone - duplicate an sk_buff
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

19       Duplicate an sk_buff. The new one is not owned by a socket. Both copies
20       share the same packet data but not structure. The new buffer has a
21       reference count of 1. If the allocation fails the function returns NULL
22       otherwise the new buffer is returned.
23
24       If this function is called from an interrupt gfp_mask must be
25       GFP_ATOMIC.
26
28Kernel Hackers Manual 3.10         June 2019                      SKB_CLONE(9)
Impressum