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

# genphy\_read\_status(9)

check the link status and update current link state

## NAME

genphy\_read\_status - check the link status and update current link state

## SYNOPSIS

**int genphy\_read\_status(struct phy\_device \*** *phydev***);**

## ARGUMENTS

*phydev*

target phy\_device struct

## DESCRIPTION

Check the link, then figure out the current state by comparing what we advertise with what the link partner advertises. Start by checking the gigabit possibilities, then move on to 10/100.

## COPYRIGHT
