---
name: "phy_attach"
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_attach"
---

# phy\_attach(9)

attach a network device to a particular PHY device

## NAME

phy\_attach - attach a network device to a particular PHY device

## SYNOPSIS

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

## ARGUMENTS

*dev*

network device to attach

*bus\_id*

Bus ID of PHY device to attach

*interface*

PHY device's interface

## DESCRIPTION

Same as **phy\_attach\_direct** except that a PHY bus\_id string is passed instead of a pointer to a struct phy\_device.

## COPYRIGHT
