---
name: "sock_unregister"
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_unregister"
---

# sock\_unregister(9)

remove a protocol handler

## NAME

sock\_unregister - remove a protocol handler

## SYNOPSIS

**void sock\_unregister(int** *family***);**

## ARGUMENTS

*family*

protocol family to remove

## DESCRIPTION

This function is called by a protocol handler that wants to remove its address family, and have it unlinked from the new socket creation.

If protocol handler is a module, then it can use module reference counts to protect against new references. If protocol handler is not a module then it needs to provide its own protection in the ops-\>create routine.

## COPYRIGHT
