---
name: "get_phy_device"
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/get_phy_device"
---

# get\_phy\_device(9)

reads the specified PHY device and returns its phy\_device struct

## NAME

get\_phy\_device - reads the specified PHY device and returns its *phy\_device* struct

## SYNOPSIS

**struct phy\_device \* get\_phy\_device(struct mii\_bus \*** *bus***, int** *addr***, bool** *is\_c45***);**

## ARGUMENTS

*bus*

the target MII bus

*addr*

PHY address on the MII bus

*is\_c45*

If true the PHY uses the 802.3 clause 45 protocol

## DESCRIPTION

Reads the ID registers of the PHY at *addr* on the *bus*, then allocates and returns the phy\_device to represent it.

## COPYRIGHT
