'\" t .\" Title: ieee80211_alloc_hw .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: The basic mac80211 driver interface .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "IEEE80211_ALLOC_HW" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "The basic mac80211 driver inte" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ieee80211_alloc_hw \- Allocate a new hardware device .SH "SYNOPSIS" .HP \w'struct\ ieee80211_hw\ *\ ieee80211_alloc_hw('u .BI "struct ieee80211_hw * ieee80211_alloc_hw(size_t\ " "priv_data_len" ", const\ struct\ ieee80211_ops\ *\ " "ops" ");" .SH "ARGUMENTS" .PP \fIpriv_data_len\fR .RS 4 length of private data .RE .PP \fIops\fR .RS 4 callbacks for this device .RE .SH "DESCRIPTION" .PP .PP This must be called once for each hardware device\&. The returned pointer must be used to refer to this device when calling other functions\&. mac80211 allocates a private data area for the driver pointed to by \fIpriv\fR in struct ieee80211_hw, the size of this area is given as \fIpriv_data_len\fR\&. .SH "RETURN" .PP A pointer to the new hardware device, or \fBNULL\fR on error\&. .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br