.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "ALLOC_NETDEV" 9 "August 2005" "Kernel Hackers Manual" "LINUX" .SH NAME alloc_netdev \- allocate network device .SH "SYNOPSIS" .ad l .hy 0 .HP 38 struct\ net_device\ *\ \fBalloc_netdev\ \fR\ (int\ \fIsizeof_priv\fR, const\ char\ *\ \fIname\fR, void\ (*\fIsetup\fR)\ struct\ net_device\ *); .ad .hy .SH "ARGUMENTS" .TP \fIsizeof_priv\fR size of private data to allocate space for .TP \fIname\fR device name format string .TP \fIsetup\fR callback to initialize device .SH "DESCRIPTION" .PP Allocates a struct net_device with private data area for driver use and performs basic initialization\&.