'\" t .\" Title: devm_mdiobus_alloc_size .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEVM_MDIOBUS_ALLOC_S" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Network device support" .\" ----------------------------------------------------------------- .\" * 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" devm_mdiobus_alloc_size \- Resource\-managed \fBmdiobus_alloc_size\fR .SH "SYNOPSIS" .HP \w'struct\ mii_bus\ *\ devm_mdiobus_alloc_size('u .BI "struct mii_bus * devm_mdiobus_alloc_size(struct\ device\ *\ " "dev" ", int\ " "sizeof_priv" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Device to allocate mii_bus for .RE .PP \fIsizeof_priv\fR .RS 4 Space to allocate for private structure\&. .RE .SH "DESCRIPTION" .PP Managed mdiobus_alloc_size\&. mii_bus allocated with this function is automatically freed on driver detach\&. .PP If an mii_bus allocated with this function needs to be freed separately, \fBdevm_mdiobus_free\fR must be used\&. .SH "RETURN" .PP Pointer to allocated mii_bus on success, NULL on failure\&. .SH "COPYRIGHT" .br