__INIT_ETHERDEV

Section: (9)
Updated: 09 April 2004
Index Return to Main Contents

 

NAME

__init_etherdev - Register ethernet device  

SYNOPSIS

struct net_device * __init_etherdev (struct net_device * dev, int sizeof_priv);  

ARGUMENTS

dev
An ethernet device structure to be filled in, or NULL if a new struct should be allocated.
sizeof_priv
Size of additional driver-private structure to be allocated for this ethernet device
 

DESCRIPTION

Fill in the fields of the device structure with ethernet-generic values.

If no device structure is passed, a new one is constructed, complete with a private data area of size sizeof_priv. A 32-byte (not bit) alignment is enforced for this private data area.

If an empty string area is passed as dev->name, or a new structure is made, a new name string is constructed.

Deprecated because of exposed window between device registration and interfaces pointers that need to be set by driver. Use alloc_etherdev and register_netdev instead.  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.0.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 12:49:18 GMT, April 09, 2004