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

NAME

6       skb_share_check - check if buffer is shared and if so clone it
7

SYNOPSIS

9       struct sk_buff * skb_share_check(struct sk_buff * skb, gfp_t pri);
10

ARGUMENTS

12       skb
13           buffer to check
14
15       pri
16           priority for memory allocation
17

DESCRIPTION

19       If the buffer is shared the buffer is cloned and the old copy drops a
20       reference. A new clone with a single reference is returned. If the
21       buffer is not shared the original buffer is returned. When being called
22       from interrupt status or with spinlocks held pri must be GFP_ATOMIC.
23
24       NULL is returned on a memory allocation failure.
25
27Kernel Hackers Manual 3.10         June 2019                SKB_SHARE_CHECK(9)
Impressum