1SKB_UNSHARE(9) Linux Networking SKB_UNSHARE(9)
2
3
4
6 skb_unshare - make a copy of a shared buffer
7
9 struct sk_buff * skb_unshare(struct sk_buff * skb, gfp_t pri);
10
12 skb
13 buffer to check
14
15 pri
16 priority for memory allocation
17
19 If the socket buffer is a clone then this function creates a new copy
20 of the data, drops a reference count on the old copy and returns the
21 new copy with the reference count at 1. If the buffer is not a clone
22 the original buffer is returned. When called with a spinlock held or
23 from interrupt state pri must be GFP_ATOMIC
24
25 NULL is returned on a memory allocation failure.
26
28Kernel Hackers Manual 2.6. June 2019 SKB_UNSHARE(9)