Name
alloc_skb —
allocate a network buffer
Synopsis
struct sk_buff * alloc_skb ( | unsigned int | size, |
| int | gfp_mask) ; |
Arguments
size
size to allocate
gfp_mask
allocation mask
Description
Allocate a new &sk_buff. The returned buffer has no headroom and a
tail room of size bytes. The object has a reference count of one.
The return is the buffer. On a failure the return is NULL
.
Buffers may only be allocated from interrupts using a gfp_mask
of
GFP_ATOMIC
.