build_skb man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

BUILD_SKB(9)		       Linux Networking			  BUILD_SKB(9)

NAME
       build_skb - build a network buffer

SYNOPSIS
       struct sk_buff * build_skb(void * data, unsigned int frag_size);

ARGUMENTS
       data
	   data buffer provided by caller

       frag_size
	   size of fragment, or 0 if head was kmalloced

DESCRIPTION
       Allocate a new sk_buff. Caller provides space holding head and
       skb_shared_info.	 data must have been allocated by kmalloc only if
       frag_size is 0, otherwise data should come from the page allocator. The
       return is the new skb buffer. On a failure the return is NULL, and data
       is not freed.

NOTES
       Before IO, driver allocates only data buffer where NIC put incoming
       frame Driver should add room at head (NET_SKB_PAD) and MUST add room at
       tail (SKB_DATA_ALIGN(skb_shared_info)) After IO, driver calls
       build_skb, to allocate sk_buff and populate it before giving packet to
       stack. RX rings only contains data buffers, not full skbs.

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013			  BUILD_SKB(9)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net