'\" t
.\"     Title: sock_unregister
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\"      Date: September 2017
.\"    Manual: Linux Networking
.\"    Source: Kernel Hackers Manual 4.12.13
.\"  Language: English
.\"
.TH "SOCK_UNREGISTER" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "Linux Networking"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
sock_unregister \- remove a protocol handler
.SH "SYNOPSIS"
.HP \w'void\ sock_unregister('u
.BI "void sock_unregister(int\ " "family" ");"
.SH "ARGUMENTS"
.PP
\fIint family\fR
.RS 4
protocol family to remove
.RE
.SH "DESCRIPTION"
.PP
This function is called by a protocol handler that wants to remove its address family, and have it unlinked from the new socket creation\&.
.PP
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\&.
.SH "COPYRIGHT"
.br
