1PSKB_EXPAND_HEAD(9) Linux Networking PSKB_EXPAND_HEAD(9)
2
3
4
6 pskb_expand_head - reallocate header of sk_buff
7
9 int pskb_expand_head(struct sk_buff * skb, int nhead, int ntail,
10 gfp_t gfp_mask);
11
13 skb
14 buffer to reallocate
15
16 nhead
17 room to add at head
18
19 ntail
20 room to add at tail
21
22 gfp_mask
23 allocation priority
24
26 Expands (or creates identical copy, if nhead and ntail are zero) header
27 of skb. sk_buff itself is not changed. sk_buff MUST have reference
28 count of 1. Returns zero in the case of success or error, if expansion
29 failed. In the last case, sk_buff is not changed.
30
31 All the pointers pointing into skb header may change and must be
32 reloaded after call to this function.
33
35Kernel Hackers Manual 2.6. November 2011 PSKB_EXPAND_HEAD(9)