'\" t .\" Title: phy_lookup_setting .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "PHY_LOOKUP_SETTING" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "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_lookup_setting \- lookup a PHY setting .SH "SYNOPSIS" .HP \w'const\ struct\ phy_setting\ *\ phy_lookup_setting('u .BI "const struct phy_setting * phy_lookup_setting(int\ " "speed" ", int\ " "duplex" ", u32\ " "features" ", bool\ " "exact" ");" .SH "ARGUMENTS" .PP \fIint speed\fR .RS 4 speed to match .RE .PP \fIint duplex\fR .RS 4 duplex to match .RE .PP \fIu32 features\fR .RS 4 allowed link modes .RE .PP \fIbool exact\fR .RS 4 an exact match is required .RE .SH "DESCRIPTION" .PP Search the settings array for a setting that matches the speed and duplex, and which is supported\&. .PP If \fIexact\fR is unset, either an exact match or \fBNULL\fR for no match will be returned\&. .PP If \fIexact\fR is set, an exact match, the fastest supported setting at or below the specified speed, the slowest supported setting, or if they all fail, \fBNULL\fR will be returned\&. .SH "COPYRIGHT" .br