sk_clone_lock(9)

sk_clone_lock9

Clone a socket, and lock its clone

Usage

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

Arguments

sk

the socket to clone

priority

for allocation (GFP_KERNEL, GFP_ATOMIC, etc)

Overview

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

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.