---
name: "register_netdevice_notifier"
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/register_netdevice_notifier"
---

# register\_netdevice\_notifier(9)

register a network notifier block

## NAME

register\_netdevice\_notifier - register a network notifier block

## SYNOPSIS

**int register\_netdevice\_notifier(struct notifier\_block \*** *nb***);**

## ARGUMENTS

*nb*

notifier

## DESCRIPTION

Register a notifier to be called when network device events occur. The notifier passed is linked into the kernel structures and must not be reused until it has been unregistered. A negative errno code is returned on a failure.

When registered all registration and up events are replayed to the new notifier to allow device to have a race free view of the network device list.

## COPYRIGHT
