1__PSKB_COPY(9) Linux Networking __PSKB_COPY(9)
2
3
4
6 __pskb_copy - create copy of an sk_buff with private head.
7
9 struct sk_buff * __pskb_copy(struct sk_buff * skb, int headroom,
10 gfp_t gfp_mask);
11
13 skb
14 buffer to copy
15
16 headroom
17 headroom of new skb
18
19 gfp_mask
20 allocation priority
21
23 Make a copy of both an sk_buff and part of its data, located in header.
24 Fragmented data remain shared. This is used when the caller wishes to
25 modify only header of sk_buff and needs private copy of the header to
26 alter. Returns NULL on failure or the pointer to the buffer on success.
27 The returned buffer has a reference count of 1.
28
30Kernel Hackers Manual 2.6. June 2019 __PSKB_COPY(9)