register_netdevice9
Register a network device
Usage
int register_netdevice(struct net_device * dev);
Arguments
dev
device to register
Overview
Take a completed network device structure and add it to the kernel interfaces. A NETDEV_REGISTER message is sent to the netdev notifier chain. 0 is returned on success. A negative errno code is returned on a failure to set up the device, or if the name is a duplicate.
Callers must hold the rtnl semaphore. You may want register_netdev instead of this.
BUGS: The locking appears insufficient to guarantee two parallel registers will not get the same name.
Releases
6 releases since Debian 4.0 (Etch); the text changed 5 times.