alloc_netdev_mq(9)

alloc_netdev_mq9

Allocate network device

Usage

struct net_device * alloc_netdev_mq(int sizeof_priv, const char * name, void (*setup) (struct net_device *), unsigned int queue_count);

Arguments

sizeof_priv

size of private data to allocate space for

name

device name format string

setup

callback to initialize device

queue_count

the number of subqueues to allocate

Overview

Allocates a struct net_device with private data area for driver use and performs basic initialization. Also allocates subquue structs for each queue on the device at the end of the netdevice.

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.