'\" t
.\"     Title: sk_clone_lock
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\"      Date: May 2018
.\"    Manual: Linux Networking
.\"    Source: Kernel Hackers Manual 3.16.56
.\"  Language: English
.\"
.TH "SK_CLONE_LOCK" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Linux Networking"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
sk_clone_lock \- clone a socket, and lock its clone
.SH "SYNOPSIS"
.HP \w'struct\ sock\ *\ sk_clone_lock('u
.BI "struct sock * sk_clone_lock(const\ struct\ sock\ *\ " "sk" ", const\ gfp_t\ " "priority" ");"
.SH "ARGUMENTS"
.PP
\fIsk\fR
.RS 4
the socket to clone
.RE
.PP
\fIpriority\fR
.RS 4
for allocation (\fBGFP_KERNEL\fR,
\fBGFP_ATOMIC\fR, etc)
.RE
.SH "DESCRIPTION"
.PP
Caller must unlock socket even in error path (bh_unlock_sock(newsk))
.SH "COPYRIGHT"
.br
