---
name: "phy_read"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/phy_read"
---

# phy\_read(9)

Convenience function for reading a given PHY register

## NAME

phy\_read - Convenience function for reading a given PHY register

## SYNOPSIS

**int phy\_read(struct phy\_device \*** *phydev***, u16** *regnum***);**

## ARGUMENTS

*phydev*

the phy\_device struct

*regnum*

register number to read

## NOTE

MUST NOT be called from interrupt context, because the bus read/write functions may wait for an interrupt to conclude the operation.

## COPYRIGHT
