mdio_read(9)
πΈ mdio_read(9) β the Kernel API Manual, bestie edition β¨
Okay so real talk, this is a page from the Kernel API Manual, and today's main character is mdio_read β your girl reads MII PHY registers and she does it flawlessly. π
β¨ NAME β¨
mdio_read β read MII PHY register π
π¦ SYNOPSIS π¦
int mdio_read (struct net_device *net_dev , int phy_id , int location );
That's the whole vibe. Three args, one int coming back at you. Slay. β
π ARGUMENTS π
net_devβ the net device you wanna read from, like, the actual thing π»phy_idβ the phy address you're reading, iykyk π§locationβ the phy register id you're reading, the specific lil spot π
π DESCRIPTION π
So the way this works: it reads MII registers through MDIO and MDC, using the MDIO management frame structure and protocol β which, no cap, is defined by ISO/IEC. πβ¨
For the full lore, go check the SiS7014 or ICS spec, bestie. That's where the details live. π«Ά
π SEE ALSO π
The kernel file ./drivers/net/ethernet/sis/sis900.c is the friend group, and honestly the whole squad showed up:
sis900_get_mac_addr(9)sis630e_get_mac_addr(9)sis635_get_mac_addr(9)sis96x_get_mac_addr(9)sis900_probe(9)sis900_mii_probe(9)sis900_default_phy(9)sis900_set_capability(9)read_eeprom(9)mdio_write(9)sis900_reset_phy(9)sis900_open(9)sis900_init_rxfilter(9)sis900_init_tx_ring(9)sis900_init_rx_ring(9)sis630_set_eq(9)sis900_timer(9)sis900_check_mode(9)sis900_set_mode(9)sis900_auto_negotiate(9)sis900_read_mode(9)sis900_tx_timeout(9)sis900_start_xmit(9)sis900_interrupt(9)sis900_rx(9)sis900_finish_xmit(9)sis900_close(9)sis900_get_drvinfo(9)sis900_set_wol(9)mii_ioctl(9)sis900_set_config(9)sis900_mcast_bitnr(9)set_rx_mode(9)sis900_reset(9)sis900_remove(9)
That's the whole group chat, no one left on read. ππ
Fr fr though β everything above is literally just this one page's world. Don't go reading registers off-spec and then act surprised, okay? π
And that's a wrap, bestie! π This iconic lil page comes to you from ./drivers/net/ethernet/sis, dated October 2026. Stan mdio_read. Periodt. ππ
π¦ 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