.\" 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_FROM_CACHE" "9" "09 October 2005" "" "" .SH NAME alloc_skb_from_cache \- allocate a network buffer .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct sk_buff * alloc_skb_from_cache (kmem_cache_t * \fIcp\fB, unsigned int \fIsize\fB, unsigned int __nocast \fIgfp_mask\fB); \fR .SH "ARGUMENTS" .TP \fB\fIcp\fB\fR kmem_cache from which to allocate the data area (object size must be big enough for \fIsize\fR bytes + skb overheads) .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 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\&.