mdiobus_scan_c22(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

mdiobus_scan_c22 β€” scan one address on a bus for C22 MDIO devices. periodt πŸ’…

okay bestie, this is the Kernel API Manual page for mdiobus_scan_c22(9), and it’s giving β€œcheck one tiny spot on the bus” energy πŸ¦‹


✨ SYNOPSIS ✨

struct phy_device * mdiobus_scan_c22 (struct mii_bus *bus , int addr );

🫢 ARGUMENTS 🫢

  • bus β€” the mii_bus to scan.
  • addr β€” the address on bus to scan.

🌸 DESCRIPTION 🌸

So this function scans one address on the MDIO bus, looking for devices that can be identified using a vendor/product ID in registers 2 and 3. That’s the hunt: one address, registers 2 and 3, vendor/product ID vibes πŸ”βœ¨

Not all MDIO devices have such registers, bestie β€” but PHY devices typically do. Hence this function assumes anything found is a PHY, or can be treated as a PHY. It’s giving β€œif it shows up, treat it like a PHY” energy 🌈

Other MDIO devices, such as switches, will probably not be found during the scan. Not a guarantee, just the vibe: don’t expect the switch squad here πŸ’€

πŸŽ€ SEE ALSO πŸŽ€


source/version: ./drivers/net/phy Β· date: October 2026 Β· page: mdiobus_scan_c22(9) β€” byeee bestie, go scan responsibly πŸ«ΆπŸ’–

πŸ“¦ where this page comes from