ALLOC_SKB_FROM_CACHE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

alloc_skb_from_cache - allocate a network buffer  

SYNOPSIS

"SYNOPSIS"

struct sk_buff * alloc_skb_from_cache (kmem_cache_t * cp, unsigned int size, unsigned int __nocast gfp_mask);  

ARGUMENTS

cp
kmem_cache from which to allocate the data area (object size must be big enough for size bytes + skb overheads)
size
size to allocate
gfp_mask
allocation mask
 

DESCRIPTION

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.

Buffers may only be allocated from interrupts using a gfp_mask of GFP_ATOMIC.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:01:55 GMT, October 09, 2005