'\" t .\" Title: phy_prepare_link .\" 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_PREPARE_LINK" "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_prepare_link \- prepares the PHY layer to monitor link status .SH "SYNOPSIS" .HP \w'void\ phy_prepare_link('u .BI "void phy_prepare_link(struct\ phy_device\ *\ " "phydev" ", void\ (*" "handler" ")\ (struct\ net_device\ *));" .SH "ARGUMENTS" .PP \fIphydev\fR .RS 4 target phy_device struct .RE .PP \fIhandler\fR .RS 4 callback function for link status change notifications .RE .SH "DESCRIPTION" .PP Tells the PHY infrastructure to handle the gory details on monitoring link status (whether through polling or an interrupt), and to call back to the connected device driver when the link status changes\&. If you want to monitor your own link state, don\*(Aqt call this function\&. .SH "COPYRIGHT" .br