alloc_netdev_mqs(9)

alloc_netdev_mqs9

Allocate network device

Usage

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

Overview

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.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.