phy_connect(9)

Submitted by Jeremy
on July 19, 2007 - 1:23am
.\" Title: phy_connect .\" Author: .\" Generator: DocBook XSL Stylesheets v1.70.1 .\" Date: July 2007 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 2.6.22 .\" .TH "PHY_CONNECT" "9" "July 2007" "Kernel Hackers Manual 2.6.22" "Network device support" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" phy_connect \- connect an ethernet device to a PHY device .SH "SYNOPSIS" .HP 32 .BI "struct phy_device * phy_connect(struct\ net_device\ *\ " "dev" ", const\ char\ *\ " "phy_id" ", void\ (*" "handler" ")\ (struct\ net_device\ *), u32\ " "flags" ", phy_interface_t\ " "interface" ");" .SH "ARGUMENTS" .TP 3n \fIdev\fR the network device to connect .TP 3n \fIphy_id\fR the PHY device to connect .TP 3n \fIhandler\fR callback function for state change notifications .TP 3n \fIflags\fR PHY device's dev_flags .TP 3n \fIinterface\fR PHY device's interface .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't want, or can't use the provided functionality, you may choose to call only the subset of functions which provide the desired functionality. .SH "COPYRIGHT"