1REGISTER_NETDEVICE(9)       Network device support       REGISTER_NETDEVICE(9)
2
3
4

NAME

6       register_netdevice - register a network device
7

SYNOPSIS

9       int register_netdevice(struct net_device * dev);
10

ARGUMENTS

12       dev
13           device to register
14

DESCRIPTION

16       Take a completed network device structure and add it to the kernel
17       interfaces. A NETDEV_REGISTER message is sent to the netdev notifier
18       chain. 0 is returned on success. A negative errno code is returned on a
19       failure to set up the device, or if the name is a duplicate.
20
21       Callers must hold the rtnl semaphore. You may want register_netdev
22       instead of this.
23

BUGS

25       The locking appears insufficient to guarantee two parallel registers
26       will not get the same name.
27
29Kernel Hackers Manual 3.10         June 2019             REGISTER_NETDEVICE(9)
Impressum