centos man page for build_skb

Query: build_skb

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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 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.10 June 2014 BUILD_SKB(9)
Related Man Pages
cfg80211_testmode_alloc_reply_skb(9) - centos
struct_tid_ampdu_rx(9) - centos
usb_alloc_coherent(9) - centos
__skb_recv_datagram(9) - suse
struct_sk_buff(9) - suse
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
Set hard block limit for user using quota
How to increment version inside a file?
Shopt -s histappend
[TIP] Processing YAML files with yq