alloc_etherdev(9)

alloc_etherdev9

Allocates and sets up an ethernet device

Usage

struct net_device * alloc_etherdev(int sizeof_priv);

Arguments

sizeof_priv

Size of additional driver-private structure to be allocated for this ethernet device

Overview

Fill in the fields of the device structure with ethernet-generic values. Basically does everything except registering the device.

Constructs a new net device, complete with a private data area of size sizeof_priv. A 32-byte (not bit) alignment is enforced for this private data area.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.