mdio_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mdio_write(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this is mdio_write(9), and we're reading it like a group chat. no cap, every argument and reference is staying right here. πŸ’–

πŸŽ€ NAME πŸŽ€

mdio_write β€” write MII PHY register. literally the whole name, and she ate. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

void mdio_write (struct net_device *net_dev , int phy_id , int location , int value );

🌸 ARGUMENTS 🌸

  • net_dev β€” the net device to write. that's the main character you're handing over. πŸ‘‘
  • phy_id β€” the phy address to write. yes, the PHY's little address badge. πŸŽ€
  • location β€” the phy register id to write. this is the exact spot in register world. πŸ“
  • value β€” the register value to write with. the actual payload, the vibe being sent. πŸ’Œ

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea: this writes MII registers with value through MDIO and MDC, using the MDIO management frame structure and protocol(defined by ISO/IEC). for the full spec lore, please see SiS7014 or ICS spec. iykyk. 😌

🌈 SEE ALSO 🌈

the whole sis900 cinematic universe lives in the kernel file ./drivers/net/ethernet/sis/sis900.c. go say hi to the whole cast, bestie: 🫢


mwah πŸ’‹ β€” this page is sourced from ./drivers/net/ethernet/sis, dated October 2026, and it's mdio_write(9) signing off. go write some MII PHY registers responsibly, bestie. ✨🫢

πŸ“¦ where this page comes from