.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SKB_CLONE" "9" "09 October 2005" "" ""
.SH NAME
skb_clone \- duplicate an sk_buff
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct sk_buff * skb_clone (struct sk_buff * \fIskb\fB, unsigned int __nocast \fIgfp_mask\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIskb\fB\fR
buffer to clone
.TP
\fB\fIgfp_mask\fB\fR
allocation priority
.SH "DESCRIPTION"
.PP
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.
.PP
If this function is called from an interrupt \fBgfp_mask\fR must be
GFP_ATOMIC\&.