alloc_etherdev_mq(9)

alloc_etherdev_mq9

Allocates and sets up an ethernet device

Usage

struct net_device * alloc_etherdev_mq(int sizeof_priv, unsigned int queue_count);

Arguments

sizeof_priv

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

queue_count

The number of queues this device has.

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.

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.