---
name: "alloc_etherdev"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/alloc_etherdev"
---

# alloc\_etherdev(9)

Allocates and sets up an ethernet device

## NAME

alloc\_etherdev - Allocates and sets up an ethernet device

## SYNOPSIS

**struct net\_device \* alloc\_etherdev(int** *sizeof\_priv***);**

## ARGUMENTS

*sizeof\_priv*

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

## 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
