1NETDEV_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 length);
11

ARGUMENTS

13       dev
14           network device to receive on
15
16       length
17           length to allocate
18

DESCRIPTION

20       Allocate a new sk_buff and assign it a usage count of one. The buffer
21       has unspecified headroom built in. Users should allocate the headroom
22       they think they need without accounting for the built in space. The
23       built in space is used for optimisations.
24
25       NULL is returned if there is no free memory. Although this function
26       allocates memory it can be called from an interrupt.
27
29Kernel Hackers Manual 2.6.       November 2011             NETDEV_ALLOC_SKB(9)
Impressum