'\" t .\" Title: phy_supported_speeds .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "PHY_SUPPORTED_SPEEDS" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "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" phy_supported_speeds \- return all speeds currently supported by a phy device .SH "SYNOPSIS" .HP \w'unsigned\ int\ phy_supported_speeds('u .BI "unsigned int phy_supported_speeds(struct\ phy_device\ *\ " "phy" ", unsigned\ int\ *\ " "speeds" ", unsigned\ int\ " "size" ");" .SH "ARGUMENTS" .PP \fIstruct phy_device * phy\fR .RS 4 The phy device to return supported speeds of\&. .RE .PP \fIunsigned int * speeds\fR .RS 4 buffer to store supported speeds in\&. .RE .PP \fIunsigned int size\fR .RS 4 size of speeds buffer\&. .RE .SH "DESCRIPTION" .PP Returns the number of supported speeds, and fills the speeds buffer with the supported speeds\&. If speeds buffer is too small to contain all currently supported speeds, will return as many speeds as can fit\&. .SH "COPYRIGHT" .br