table of contents
other versions
SK_CLONE_LOCK(9) | Linux Networking | SK_CLONE_LOCK(9) |
NAME¶
sk_clone_lock - clone a socket, and lock its clone
SYNOPSIS¶
struct sock * sk_clone_lock(const struct sock * sk, const gfp_t priority);
ARGUMENTS¶
const struct sock * sk
the socket to clone
const gfp_t priority
for allocation (GFP_KERNEL, GFP_ATOMIC,
etc)
DESCRIPTION¶
Caller must unlock socket even in error path (bh_unlock_sock(newsk))
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.12 |