sock_alloc(9)

sock_alloc9

Allocate a socket

Usage

struct socket * sock_alloc(void);

Arguments

void

no arguments

Overview

Allocate a new inode and socket object. The two are bound together and initialised. The socket is then returned. If we are out of inodes NULL is returned.

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