REGISTER_NETDEVICE

Section: (9)
Updated: 06 August 2003
Index Return to Main Contents

 

NAME

register_netdevice - register a network device  

SYNOPSIS

int register_netdevice (struct net_device * dev);  

ARGUMENTS

dev
device to register
 

DESCRIPTION

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. See the comment at the end of Space.c for details about the locking. You may want register_netdev instead of this.  

BUGS

The locking appears insufficient to guarantee two parallel registers will not get the same name.  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.0.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
BUGS
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 08:41:29 GMT, April 09, 2004