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

NAME

6       __napi_alloc_skb - allocate skbuff for rx in a specific NAPI instance
7

SYNOPSIS

9       struct sk_buff * __napi_alloc_skb(struct napi_struct * napi,
10                                         unsigned int len, gfp_t gfp_mask);
11

ARGUMENTS

13       napi
14           napi instance this buffer was allocated for
15
16       len
17           -- undescribed --
18
19       gfp_mask
20           get_free_pages mask, passed to alloc_skb and alloc_pages
21

DESCRIPTION

23       Allocate a new sk_buff for use in NAPI receive. This buffer will
24       attempt to allocate the head from a special reserved region used only
25       for NAPI Rx allocation. By doing this we can save several CPU cycles by
26       avoiding having to disable and re-enable IRQs.
27
28       NULL is returned if there is no free memory.
29
31Kernel Hackers Manual 3.10         June 2019               __NAPI_ALLOC_SKB(9)
Impressum