mdio_bus_match(9)
π mdio_bus_match(9) β the kernel API manual, bestie edition π
okay so this is a page from the Kernel API Manual (that's the manual name, iykyk) and it's about mdio_bus_match β one tiny function doing one very important vibe check. let's get into it π«Ά
β¨ NAME β¨
mdio_bus_match β determine if given MDIO driver supports the given MDIO device
like, literally just: does this driver fw this device? yes or no. main character energy for a bool π
β¨ SYNOPSIS β¨
int mdio_bus_match (struct device *dev , const struct device_driver *drv );
that's it. that's the whole signature. no cap. π
β¨ ARGUMENTS β¨
devβ target MDIO device πΈ (the device being checked, the one we're asking about)drvβ given MDIO driver β (the driver we're asking about, as in: do you support this device or not)
β¨ RETURN β¨
1if the driver supports the device π₯0otherwise π
binary. iconic. periodt.
β¨ DESCRIPTION β¨
so here's the tea π: this may require calling the device's own match function, because different classes of MDIO devices have different match criteria.
read that again bestie β different classes of MDIO devices have different match criteria. so there's no universal one-size-fits-all check here, and the function might have to delegate to the device's own match function to figure it out. it's giving "let them introduce themselves" energy π
β¨ SEE ALSO β¨
the whole friend group π§ β Kernel file ./drivers/net/phy/mdio_bus_provider.c and honestly the entire squad:
mdiobus_release(9)mdiobus_alloc_size(9)mdiobus_scan_c22(9)mdiobus_scan_c45(9)__mdiobus_register(9)mdiobus_free(9)mdio_find_bus(9)of_mdio_find_bus(9)
go read those next, bestie, they're all linked up and lowkey obsessed with each other π
ngl this one's a short page β but every single word of it is load-bearing, so don't skip the DESCRIPTION just because it's one sentence π
and that's a wrap, babe! π this page lives at ./drivers/net/phy and it's dated October 2026 β so yeah, future-timestamped, slay, we love a time traveler πβ¨ see you in the next manpage! ππ¦
π¦ 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