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

NAME

6       register_netdev - register a network device
7

SYNOPSIS

9       int register_netdev(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       This is a wrapper around register_netdevice that takes the rtnl
22       semaphore and expands the device name if you passed a format string to
23       alloc_netdev.
24
26Kernel Hackers Manual 3.10         June 2019                REGISTER_NETDEV(9)
Impressum