1SK_CLONE_LOCK(9) Linux Networking SK_CLONE_LOCK(9)
23
4
NAME
6sk_clone_lock - clone a socket, and lock its clone
7
SYNOPSIS
9struct sock * sk_clone_lock(const struct sock * sk,
10const gfp_t priority);
11
ARGUMENTS
13sk
14the socket to clone
1516
priority
17for allocation (GFP_KERNEL, GFP_ATOMIC, etc)
18
DESCRIPTION
20Caller must unlock socket even in error path (bh_unlock_sock(newsk))
21
COPYRIGHT
23Kernel Hackers Manual 3.10 June 2019 SK_CLONE_LOCK(9)