---
name: "alloc_netdev_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_netdev_mqs"
---

# alloc\_netdev\_mqs(9)

allocate network device

## NAME

alloc\_netdev\_mqs - allocate network device

## SYNOPSIS

**struct net\_device \* alloc\_netdev\_mqs(int** *sizeof\_priv***, const char \*** *name***, unsigned char** *name\_assign\_type***, void (\****setup***) (struct net\_device \*), unsigned int** *txqs***, unsigned int** *rxqs***);**

## ARGUMENTS

*sizeof\_priv*

size of private data to allocate space for

*name*

device name format string

*name\_assign\_type*

origin of device name

*setup*

callback to initialize device

*txqs*

the number of TX subqueues to allocate

*rxqs*

the number of RX subqueues to allocate

## DESCRIPTION

Allocates a struct net\_device with private data area for driver use and performs basic initialization. Also allocates subqueue structs for each queue on the device.

## COPYRIGHT
