ksz_parent_mdio_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

ksz_parent_mdio_read β€” read data from a PHY register on the parent MDIO bus. Yep bestie, this is the kernel API manual page for ksz_parent_mdio_read(9), and it's literally all about grabbing PHY register data off the parent MDIO bus πŸ’…βœ¨

πŸ› οΈ SYNOPSIS πŸ› οΈ

int ksz_parent_mdio_read (struct mii_bus *bus , int addr , int regnum );

πŸŽ€ ARGUMENTS πŸŽ€

  • bus β€” the MDIO bus structure. That's the bus, bestie 🚌
  • addr β€” PHY address on the parent MDIO bus.
  • regnum β€” register number to read.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function is giving direct read on the parent MDIO bus for accessing PHY registers. By bypassing SPI or I2C, it uses the parent MDIO bus to retrieve data from the PHY registers at the specified address and register number. No detours, just parent-MDIO energy πŸ”₯

⭐ RETURN ⭐

Value of the PHY register, or a negative error code on failure. If it fails, it's not slay β€” expect that negative error code 😭

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/net/dsa/microchip/ksz_common.c


Cute little sign-off: this page comes from ./drivers/net/dsa/microchip, dated October 2026. Mwah, go read those PHY registers responsibly πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from