table of contents
other versions
- wheezy-backports 3.16.39-1+deb8u1~bpo70+1
- jessie 3.16.43-2
| SKB_CLONE(9) | Linux Networking | SKB_CLONE(9) |
NAME¶
skb_clone - duplicate an sk_buffSYNOPSIS¶
struct
sk_buff * skb_clone(struct sk_buff * skb,
gfp_t gfp_mask);
ARGUMENTS¶
skbbuffer to clone
gfp_mask
allocation priority
DESCRIPTION¶
Duplicate an sk_buff. The new one is not owned by a socket. Both copies share the same packet data but not structure. The new buffer has a reference count of 1. If the allocation fails the function returns NULL otherwise the new buffer is returned. If this function is called from an interrupt gfp_mask must be GFP_ATOMIC.COPYRIGHT¶
| February 2017 | Kernel Hackers Manual 3.16 |