'\" t .\" Title: register_netdevice_notifier .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "REGISTER_NETDEVICE_N" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "Network device support" .\" ----------------------------------------------------------------- .\" * 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" register_netdevice_notifier \- register a network notifier block .SH "SYNOPSIS" .HP \w'int\ register_netdevice_notifier('u .BI "int register_netdevice_notifier(struct\ notifier_block\ *\ " "nb" ");" .SH "ARGUMENTS" .PP \fIstruct notifier_block * nb\fR .RS 4 notifier .RE .SH "DESCRIPTION" .PP 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\&. .PP 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\&. .SH "COPYRIGHT" .br