axienet_mdio_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to axienet_mdio_read(9) from the Kernel API Manual β€” the MDIO interface read function. It’s giving β€œtiny function, big hardware energy” and honestly? Obsessed. πŸ’–


🌸 SYNOPSIS 🌸

int axienet_mdio_read (struct mii_bus *bus , int phy_id , int reg );

πŸŽ€ ARGUMENTS πŸŽ€

  • bus β€” pointer to the mii bus structure. Your bus bestie. 🚌
  • phy_id β€” address of the PHY device. Where the PHY lives, basically. πŸ“
  • reg β€” PHY register to read. The exact little register you’re here for. 🎯

πŸ’… RETURN πŸ’…

The register contents on success, -ETIMEDOUT on a timeout. That’s the whole return tea. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

Reads the contents of the requested register from the requested PHY address. The way it does this is kinda iconic: first it writes the details into the MCR register. After a while, the register MRD is read to obtain the PHY register content. Literally read-a-register pipeline behavior. 🫢


🌈 SEE ALSO 🌈

Go read the whole friend group, bestie. It’s giving kernel networking lore. πŸ’€πŸ’–


mwah πŸ’‹ this page’s source/version is ./drivers/net/ethernet/xilinx, dated October 2026 β€” axienet_mdio_read(9), signing off. 🫢✨

πŸ“¦ where this page comes from