'\" t .\" Title: sk_clone_lock .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "SK_CLONE_LOCK" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "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 \fIconst struct sock * sk\fR .RS 4 the socket to clone .RE .PP \fIconst gfp_t priority\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