Scroll to navigation

UNREGISTER_NETDEVICE(9) Network device support UNREGISTER_NETDEVICE(9)

NAME

unregister_netdevice_notifier_rh - unregister a network notifier block

SYNOPSIS

int unregister_netdevice_notifier_rh(struct notifier_block * nb);

ARGUMENTS

nb

notifier

DESCRIPTION

Unregister a notifier previously registered by register_netdevice_notifier. The notifier is unlinked into the kernel structures and may then be reused. A negative errno code is returned on a failure.

After unregistering unregister and down device events are synthesized for all devices on the device list to the removed notifier to remove the need for special case cleanup code.

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