'\" t .\" Title: wiphy_new .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device registration .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "WIPHY_NEW" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device registration" .\" ----------------------------------------------------------------- .\" * 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" wiphy_new \- create a new wiphy for use with cfg80211 .SH "SYNOPSIS" .HP \w'struct\ wiphy\ *\ wiphy_new('u .BI "struct wiphy * wiphy_new(const\ struct\ cfg80211_ops\ *\ " "ops" ", int\ " "sizeof_priv" ");" .SH "ARGUMENTS" .PP \fIops\fR .RS 4 The configuration operations for this device .RE .PP \fIsizeof_priv\fR .RS 4 The size of the private area to allocate .RE .SH "DESCRIPTION" .PP Create a new wiphy and associate the given operations with it\&. \fIsizeof_priv\fR bytes are allocated for private use\&. .SH "RETURN" .PP A pointer to the new wiphy\&. This pointer must be assigned to each netdev\*(Aqs ieee80211_ptr for proper operation\&. .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br