---
name: "phy_connect"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/phy_connect"
---

# phy\_connect(9)

connect an ethernet device to a PHY device

## NAME

phy\_connect - connect an ethernet device to a PHY device

## SYNOPSIS

**struct phy\_device \* phy\_connect(struct net\_device \*** *dev***, const char \*** *bus\_id***, void (\****handler***) (struct net\_device \*), phy\_interface\_t** *interface***);**

## ARGUMENTS

*dev*

the network device to connect

*bus\_id*

the id string of the PHY device to connect

*handler*

callback function for state change notifications

*interface*

PHY device's interface

## DESCRIPTION

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.

## COPYRIGHT
