rtl83xx_setup_user_mdio(9)
π rtl83xx_setup_user_mdio β a page from the Kernel API Manual β¨
okay bestie, buckle up, because this is the little function that gets your built-in Ethernet PHYs talking π«Ά
πΈ NAME πΈ
rtl83xx_setup_user_mdio β the one that registers the user mii bus driver π
π SYNOPSIS π
int rtl83xx_setup_user_mdio (struct dsa_switch *ds );
π ARGUMENTS π
dsβ the DSA switch that's literally associated with thisuser_mii_busπ«
π¦ DESCRIPTION π¦
So what it does is: it registers the MDIO bus for the built-in Ethernet PHYs, and then it associates that bus with the mandatory 'mdio' child OF node of the switch. like, mandatory mandatory β no cap, that node has to be there π₯
β CONTEXT β
Can sleep π΄ (so yes, treat it accordingly, it's not an atomic-context girlie)
π RETURN π
0on success π- a negative value for failure π
π SEE ALSO π
Kernel file ./drivers/net/dsa/realtek/rtl83xx.c plus the whole friend group:
rtl83xx_lock(9)rtl83xx_unlock(9)rtl83xx_probe(9)rtl83xx_register_switch(9)rtl83xx_unregister_switch(9)rtl83xx_shutdown(9)rtl83xx_remove(9)rtl83xx_port_bridge_join(9)rtl83xx_port_bridge_leave(9)rtl83xx_port_fast_age(9)rtl83xx_port_fdb_add(9)rtl83xx_port_fdb_del(9)rtl83xx_port_fdb_dump(9)rtl83xx_port_mdb_add(9)rtl83xx_port_mdb_del(9)rtl83xx_port_bridge_flags(9)rtl83xx_setup_port_flood_control(9)
mwah π this lil page lives at ./drivers/net/dsa/realtek, dated October 2026, and it's filed under rtl83xx_setup_user_mdio(9) β¨ slay β¨
π¦ 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