.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "ALLOC_SKB" 9 "August 2005" "Kernel Hackers Manual" "LINUX" .SH NAME alloc_skb \- allocate a network buffer .SH "SYNOPSIS" .ad l .hy 0 .HP 32 struct\ sk_buff\ *\ \fBalloc_skb\ \fR\ (unsigned\ int\ \fIsize\fR, int\ \fIgfp_mask\fR); .ad .hy .SH "ARGUMENTS" .TP \fIsize\fR size to allocate .TP \fIgfp_mask\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 \fBNULL\fR\&. .PP Buffers may only be allocated from interrupts using a \fIgfp_mask\fR of \fBGFP_ATOMIC\fR\&.