---
name: "sock_register"
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_register"
---

# sock\_register(9)

add a socket protocol handler

## NAME

sock\_register - add a socket protocol handler

## SYNOPSIS

**int sock\_register(const struct net\_proto\_family \*** *ops***);**

## ARGUMENTS

*ops*

description of protocol

## DESCRIPTION

This function is called by a protocol handler that wants to advertise its address family, and have it linked into the socket interface. The value ops-\>family corresponds to the socket system call protocol family.

## COPYRIGHT
