---
name: "alloc_etherdev_mq"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/alloc_etherdev_mq"
---

# alloc\_etherdev\_mq(9)

Allocates and sets up an Ethernet device

## NAME

alloc\_etherdev\_mq - Allocates and sets up an Ethernet device

## SYNOPSIS

**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.

## DESCRIPTION

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.

## COPYRIGHT
