.\"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 "__DEV_ALLOC_SKB" 9 "August 2005" "Kernel Hackers Manual" "LINUX" .SH NAME __dev_alloc_skb \- allocate an skbuff for sending .SH "SYNOPSIS" .ad l .hy 0 .HP 38 struct\ sk_buff\ *\ \fB__dev_alloc_skb\ \fR\ (unsigned\ int\ \fIlength\fR, int\ \fIgfp_mask\fR); .ad .hy .SH "ARGUMENTS" .TP \fIlength\fR length to allocate .TP \fIgfp_mask\fR get_free_pages mask, passed to alloc_skb .SH "DESCRIPTION" .PP Allocate a new &sk_buff and assign it a usage count of one\&. The buffer has unspecified headroom built in\&. Users should allocate the headroom they think they need without accounting for the built in space\&. The built in space is used for optimisations\&. .PP \fBNULL\fR is returned in there is no free memory\&.