---
name: "sock_alloc"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sock_alloc"
---

# sock\_alloc(9)

allocate a socket

## NAME

sock\_alloc - allocate a socket

## SYNOPSIS

**struct socket \* sock\_alloc(***void***);**

## ARGUMENTS

*void*

no arguments

## DESCRIPTION

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.

## COPYRIGHT
