mdiobus_scan_c22(9)
π 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β themii_busto scan.addrβ the address onbusto 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 π
- Kernel file:
./drivers/net/phy/mdio_bus_provider.c mdiobus_release(9)mdio_bus_match(9)mdiobus_alloc_size(9)mdiobus_scan_c45(9)__mdiobus_register(9)mdiobus_free(9)mdio_find_bus(9)of_mdio_find_bus(9)
source/version: ./drivers/net/phy Β· date: October 2026 Β· page: mdiobus_scan_c22(9) β byeee bestie, go scan responsibly π«Άπ
π¦ 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