---
name: "alloc_etherdev_mqs"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/alloc_etherdev_mqs"
---

# alloc\_etherdev\_mqs(9)

Allocates and sets up an Ethernet device

## NAME

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

## SYNOPSIS

**struct net\_device \* alloc\_etherdev\_mqs(int** *sizeof\_priv***, unsigned int** *txqs***, unsigned int** *rxqs***);**

## ARGUMENTS

*sizeof\_priv*

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

*txqs*

The number of TX queues this device has.

*rxqs*

The number of RX 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
