alloc_netdev(9)

alloc_netdev9

Allocate network device

Usage

struct net_device * alloc_netdev(int sizeof_priv, const char * name, void (*setup) (struct net_device *));

Arguments

sizeof_priv

size of private data to allocate space for

name

device name format string

setup

callback to initialize device

Overview

Allocates a struct net_device with private data area for driver use and performs basic initialization.

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.