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

NAME

6       __alloc_skb - allocate a network buffer
7

SYNOPSIS

9       struct sk_buff * __alloc_skb(unsigned int size, gfp_t gfp_mask,
10                                    int flags, int node);
11

ARGUMENTS

13       size
14           size to allocate
15
16       gfp_mask
17           allocation mask
18
19       flags
20           If SKB_ALLOC_FCLONE is set, allocate from fclone cache instead of
21           head cache and allocate a cloned (child) skb. If SKB_ALLOC_RX is
22           set, __GFP_MEMALLOC will be used for allocations in case the data
23           is required for writeback
24
25       node
26           numa node to allocate memory on
27

DESCRIPTION

29       Allocate a new sk_buff. The returned buffer has no headroom and a tail
30       room of at least size bytes. The object has a reference count of one.
31       The return is the buffer. On a failure the return is NULL.
32
33       Buffers may only be allocated from interrupts using a gfp_mask of
34       GFP_ATOMIC.
35
37Kernel Hackers Manual 3.10         June 2019                    __ALLOC_SKB(9)
Impressum