SKB_CLONE

Section: (9)
Updated: 14 August 2003
Index Return to Main Contents

 

NAME

skb_clone - duplicate an sk_buff  

SYNOPSIS

struct sk_buff * skb_clone (struct sk_buff * skb, int gfp_mask);  

ARGUMENTS

skb
buffer to clone
gfp_mask
allocation priority
 

DESCRIPTION

Duplicate an &sk_buff. The new one is not owned by a socket. Both copies share the same packet data but not structure. The new buffer has a reference count of 1. If the allocation fails the function returns NULL otherwise the new buffer is returned.

If this function is called from an interrupt gfp_mask must be GFP_ATOMIC.  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.0.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 23:19:28 GMT, August 13, 2003