arc_mdio_read(9)
π arc_mdio_read β MDIO interface read function β¨
Okay bestie, welcome to arc_mdio_read(9) from the Kernel API Manual β yes, the kernel API manual, we're literally in the big leagues now π This is the little function that goes and fetches a register value off a PHY for you, and honestly? It's giving "quiet hero of the Ethernet stack" energy. π
πΈ SYNOPSIS πΈ
int arc_mdio_read (struct mii_bus *bus , int phy_addr , int reg_num );
Three args, one int back. That's the whole vibe check. π¦
π«Ά ARGUMENTS π«Ά
busβ Pointer to the MII bus structure. Like, this is the bus you're talking over, bestie. πphy_addrβ Address of the PHY device. Gotta know who you're talking to, obviously. πreg_numβ The PHY register you wanna read. Pick your register, queen. π
β¨ RETURN β¨
- The register contents on success β slay, you got your data π
-ETIMEDOUTon a timeout β so if it ghosts you, that's the error you get ππ
π DESCRIPTION π
Reads the contents of the requested register from the requested PHY address. That's it. That's the whole thing. It's lowkey simple and highkey essential β you hand it a bus, a PHY address, and a register number, and it comes back with the register contents. Periodt. π₯
π§ SEE ALSO π§
- Kernel file
./drivers/net/ethernet/arc/emac_mdio.cπ arc_mdio_complete_wait(9)arc_mdio_write(9)arc_mdio_reset(9)arc_mdio_probe(9)arc_mdio_remove(9)
The whole friend group, fr fr β go read the rest of them. π
So yeah, that's arc_mdio_read(9), brought to you by ./drivers/net/ethernet/arc, dated October 2026. Go read a register, bestie β you've got this. πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms