---
name: "sock_release"
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_release"
---

# sock\_release(9)

close a socket

## NAME

sock\_release - close a socket

## SYNOPSIS

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

## ARGUMENTS

*sock*

socket to close

## DESCRIPTION

The socket is released from the protocol stack if it has a release callback, and the inode is then released if the socket is bound to an inode not a file.

## COPYRIGHT
