1__ALLOC_SKB(9) Linux Networking __ALLOC_SKB(9)
2
3
4
6 __alloc_skb - allocate a network buffer
7
9 struct sk_buff * __alloc_skb(unsigned int size, gfp_t gfp_mask,
10 int fclone, int node);
11
13 size
14 size to allocate
15
16 gfp_mask
17 allocation mask
18
19 fclone
20 allocate from fclone cache instead of head cache and allocate a
21 cloned (child) skb
22
23 node
24 numa node to allocate memory on
25
27 Allocate a new sk_buff. The returned buffer has no headroom and a tail
28 room of size bytes. The object has a reference count of one. The return
29 is the buffer. On a failure the return is NULL.
30
31 Buffers may only be allocated from interrupts using a gfp_mask of
32 GFP_ATOMIC.
33
35Kernel Hackers Manual 2.6. June 2019 __ALLOC_SKB(9)