get_phy_device(9)

get_phy_device9

Reads the specified phy device and returns its phy_device struct

Usage

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

Overview

Reads the ID registers of the PHY at addr on the bus, then allocates and returns the phy_device to represent it.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.