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

NAME

6       skb_copy_expand - copy and expand sk_buff
7

SYNOPSIS

9       struct sk_buff * skb_copy_expand(const struct sk_buff * skb,
10                                        int newheadroom, int newtailroom,
11                                        gfp_t gfp_mask);
12

ARGUMENTS

14       skb
15           buffer to copy
16
17       newheadroom
18           new free bytes at head
19
20       newtailroom
21           new free bytes at tail
22
23       gfp_mask
24           allocation priority
25

DESCRIPTION

27       Make a copy of both an sk_buff and its data and while doing so allocate
28       additional space.
29
30       This is used when the caller wishes to modify the data and needs a
31       private copy of the data to alter as well as more space for new fields.
32       Returns NULL on failure or the pointer to the buffer on success. The
33       returned buffer has a reference count of 1.
34
35       You must pass GFP_ATOMIC as the allocation priority if this function is
36       called from an interrupt.
37
39Kernel Hackers Manual 2.6.         June 2019                SKB_COPY_EXPAND(9)
Impressum