'\" t .\" Title: phy_check_valid .\" 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 "PHY_CHECK_VALID" "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" phy_check_valid \- check if there is a valid PHY setting which matches speed, duplex, and feature mask .SH "SYNOPSIS" .HP \w'bool\ phy_check_valid('u .BI "bool phy_check_valid(int\ " "speed" ", int\ " "duplex" ", u32\ " "features" ");" .SH "ARGUMENTS" .PP \fIspeed\fR .RS 4 speed to match .RE .PP \fIduplex\fR .RS 4 duplex to match .RE .PP \fIfeatures\fR .RS 4 A mask of the valid settings .RE .SH "DESCRIPTION" .PP Returns true if there is a valid setting, false otherwise\&. .SH "COPYRIGHT" .br