SKB_SHARE_CHECK

Section: (9)
Updated: 09 April 2004
Index Return to Main Contents

 

NAME

skb_share_check - check if buffer is shared and if so clone it  

SYNOPSIS

struct sk_buff * skb_share_check (struct sk_buff * skb, int pri);  

ARGUMENTS

skb
buffer to check
pri
priority for memory allocation
 

DESCRIPTION

If the buffer is shared the buffer is cloned and the old copy drops a reference. A new clone with a single reference is returned. If the buffer is not shared the original buffer is returned. When being called from interrupt status or with spinlocks held pri must be GFP_ATOMIC.

NULL is returned on a memory allocation failure.  

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: 09:20:09 GMT, April 09, 2004