rtl83xx_setup_user_mdio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 this user_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 πŸ’œ

  • 0 on success πŸŽ‰
  • a negative value for failure 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/dsa/realtek/rtl83xx.c plus the whole friend group:


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