---
name: "phy_prepare_link"
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_prepare_link"
---

# phy\_prepare\_link(9)

prepares the PHY layer to monitor link status

## NAME

phy\_prepare\_link - prepares the PHY layer to monitor link status

## SYNOPSIS

**void phy\_prepare\_link(struct phy\_device \*** *phydev***, void (\****handler***) (struct net\_device \*));**

## ARGUMENTS

*phydev*

target phy\_device struct

*handler*

callback function for link status change notifications

## DESCRIPTION

Tells the PHY infrastructure to handle the gory details on monitoring link status (whether through polling or an interrupt), and to call back to the connected device driver when the link status changes. If you want to monitor your own link state, don't call this function.

## COPYRIGHT
