'\" t .\" Title: genphy_update_link .\" 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.12.2 .\" Language: English .\" .TH "GENPHY_UPDATE_LINK" "9" "July 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" genphy_update_link \- update link status in \fIphydev\fR .SH "SYNOPSIS" .HP \w'int\ genphy_update_link('u .BI "int genphy_update_link(struct\ phy_device\ *\ " "phydev" ");" .SH "ARGUMENTS" .PP \fIstruct phy_device * phydev\fR .RS 4 target phy_device struct .RE .SH "DESCRIPTION" .PP Update the value in phydev\->link to reflect the current link value\&. In order to do this, we need to read the status register twice, keeping the second value\&. .SH "COPYRIGHT" .br