Scroll to navigation

REGISTER_NETDEVICE_N(9) Network device support REGISTER_NETDEVICE_N(9)

NAME

register_netdevice_notifier_rh - register a network notifier block

SYNOPSIS

int register_netdevice_notifier_rh(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.

NOTE THAT this function must be used for notifiers that takes pointer to 'struct netdev_notifier_info' as 3rd parameter.

COPYRIGHT

June 2023 Kernel Hackers Manual 3.10