1__NETDEV_ALLOC_SKB(9) Linux Networking __NETDEV_ALLOC_SKB(9)
2
3
4
6 __netdev_alloc_skb - allocate an skbuff for rx on a specific device
7
9 struct sk_buff * __netdev_alloc_skb(struct net_device * dev,
10 unsigned int length,
11 gfp_t gfp_mask);
12
14 dev
15 network device to receive on
16
17 length
18 length to allocate
19
20 gfp_mask
21 get_free_pages mask, passed to alloc_skb
22
24 Allocate a new sk_buff and assign it a usage count of one. The buffer
25 has unspecified headroom built in. Users should allocate the headroom
26 they think they need without accounting for the built in space. The
27 built in space is used for optimisations.
28
29 NULL is returned if there is no free memory.
30
32Kernel Hackers Manual 2.6. November 2011 __NETDEV_ALLOC_SKB(9)