.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "ALLOC_SKB" "9" "09 October 2005" "" ""
.SH NAME
alloc_skb \- allocate a network buffer
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct sk_buff * alloc_skb (unsigned int \fIsize\fB, unsigned int __nocast \fIgfp_mask\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsize\fB\fR
size to allocate
.TP
\fB\fIgfp_mask\fB\fR
allocation mask
.SH "DESCRIPTION"
.PP
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\&.
.PP
Buffers may only be allocated from interrupts using a \fIgfp_mask\fR of
GFP_ATOMIC\&.