'\" t .\" Title: phy_connect .\" 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_CONNECT" "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_connect \- connect an ethernet device to a PHY device .SH "SYNOPSIS" .HP \w'struct\ phy_device\ *\ phy_connect('u .BI "struct phy_device * phy_connect(struct\ net_device\ *\ " "dev" ", const\ char\ *\ " "bus_id" ", void\ (*" "handler" ")\ (struct\ net_device\ *), phy_interface_t\ " "interface" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 the network device to connect .RE .PP \fIbus_id\fR .RS 4 the id string of the PHY device to connect .RE .PP \fIhandler\fR .RS 4 callback function for state change notifications .RE .PP \fIinterface\fR .RS 4 PHY device\*(Aqs interface .RE .SH "DESCRIPTION" .PP Convenience function for connecting ethernet devices to PHY devices\&. The default behavior is for the PHY infrastructure to handle everything, and only notify the connected driver when the link status changes\&. If you don\*(Aqt want, or can\*(Aqt use the provided functionality, you may choose to call only the subset of functions which provide the desired functionality\&. .SH "COPYRIGHT" .br