1DEV_ALLOC_SKB(9) Linux Networking DEV_ALLOC_SKB(9)
2
3
4
6 dev_alloc_skb - allocate an skbuff for receiving
7
9 struct sk_buff * dev_alloc_skb(unsigned int length);
10
12 length
13 length to allocate
14
16 Allocate a new sk_buff and assign it a usage count of one. The buffer
17 has unspecified headroom built in. Users should allocate the headroom
18 they think they need without accounting for the built in space. The
19 built in space is used for optimisations.
20
21 NULL is returned if there is no free memory. Although this function
22 allocates memory it can be called from an interrupt.
23
25Kernel Hackers Manual 2.6. November 2011 DEV_ALLOC_SKB(9)