login
Header Space

 
 

__alloc_skb(9)

July 19, 2007 - 1:23am
Submitted by Jeremy on July 19, 2007 - 1:23am.

INDEX

    NAME, SYNOPSIS, ARGUMENTS, DESCRIPTION, COPYRIGHT

    "__ALLOC_SKB" "9" "July 2007" "Kernel Hackers Manual 2.6.22" "Linux Networking"

    NAME

    __alloc_skb - allocate a network buffer

    SYNOPSIS

    "struct sk_buff * __alloc_skb(unsigned int " "size" ", gfp_t " "gfp_mask" ", int " "fclone" ", int " "node" ");"

    ARGUMENTS

    size

    size to allocate
    gfp_mask
    allocation mask

    fclone

    allocate from fclone cache instead of head cache and allocate a cloned (child) skb
    node
    numa node to allocate memory on

    DESCRIPTION

    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 NULLfR.

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

    COPYRIGHT

speck-geostationary