Chapter 7. Linux Networking

7.1. Socket Buffer Functions

Table of Contents
skb_queue_empty --  check if a queue is empty
skb_get --  reference buffer
kfree_skb --  free an sk_buff
skb_cloned --  is the buffer a clone
skb_shared --  is the buffer shared
skb_share_check --  check if buffer is shared and if so clone it
skb_unshare --  make a copy of a shared buffer
skb_peek -- 
skb_peek_tail -- 
skb_queue_len --  get queue length
__skb_queue_head --  queue a buffer at the list head
skb_queue_head --  queue a buffer at the list head
__skb_queue_tail --  queue a buffer at the list tail
skb_queue_tail --  queue a buffer at the list tail
__skb_dequeue --  remove from the head of the queue
skb_dequeue --  remove from the head of the queue
skb_insert --  insert a buffer
skb_append --  append a buffer
skb_unlink --  remove a buffer from a list
__skb_dequeue_tail --  remove from the tail of the queue
skb_dequeue_tail --  remove from the head of the queue
skb_put --  add data to a buffer
skb_push --  add data to the start of a buffer
skb_pull --  remove data from the start of a buffer
skb_headroom --  bytes at buffer head
skb_tailroom --  bytes at buffer end
skb_reserve --  adjust headroom
skb_trim --  remove end from a buffer
skb_orphan --  orphan a buffer
skb_queue_purge --  empty a list
__skb_queue_purge --  empty a list
__dev_alloc_skb --  allocate an skbuff for sending
dev_alloc_skb --  allocate an skbuff for sending
skb_cow --  copy header of skb when it is required
skb_padto --  pad an skbuff up to a minimal size
skb_over_panic --  private function
skb_under_panic --  private function
alloc_skb --  allocate a network buffer
__kfree_skb --  private function
skb_clone --  duplicate an sk_buff
skb_copy --  create private copy of an sk_buff
pskb_copy --  create copy of an sk_buff with private head.
pskb_expand_head --  reallocate header of sk_buff
skb_copy_expand --  copy and expand sk_buff
skb_pad --  zero pad the tail of an skb
__pskb_pull_tail --  advance tail of skb header