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

NAME

6       __netdev_alloc_skb - allocate an skbuff for rx on a specific device
7

SYNOPSIS

9       struct sk_buff * __netdev_alloc_skb(struct net_device * dev,
10                                           unsigned int len, gfp_t gfp_mask);
11

ARGUMENTS

13       dev
14           network device to receive on
15
16       len
17           -- undescribed --
18
19       gfp_mask
20           get_free_pages mask, passed to alloc_skb
21

DESCRIPTION

23       Allocate a new sk_buff and assign it a usage count of one. The buffer
24       has NET_SKB_PAD headroom built in. Users should allocate the headroom
25       they think they need without accounting for the built in space. The
26       built in space is used for optimisations.
27
28       NULL is returned if there is no free memory.
29
31Kernel Hackers Manual 3.10         June 2019             __NETDEV_ALLOC_SKB(9)
Impressum