1. NAME▲

sk_clone_lock - clone a socket, and lock its clone

2. SYNOPSIS ▲

struct sock * sk_clone_lock(const struct sock *  sk , const gfp_t  priority );

3. ARGUMENTS ▲

sk
    the socket to clone

priority
    for allocation (GFP_KERNEL, GFP_ATOMIC, etc)

4. DESCRIPTION ▲

Caller must unlock socket even in error path (bh_unlock_sock(newsk))

5. COPYRIGHT ▲