mdio_driver_register(9)
π mdio_driver_register(9)
okay bestie, welcome to the Kernel API Manual β this one's a lil function called mdio_driver_register, and honestly? it does exactly what it says on the tin. no cap. β¨
πΈ NAME πΈ
mdio_driver_register β registers an mdio_driver with the MDIO layer. that's it, that's the whole vibe. she's a one-job girlie and she ate π
π SYNOPSIS π
int mdio_driver_register (struct mdio_driver *drv );
like, copy it exactly, okay? the spacing is iconic and we do not touch it π
π ARGUMENTS π
drvβ the brand-newmdio_driveryou want to register. that's your main character right there π«Ά
β RETURN β
- Zero if it worked β slay, we're in π
- a negative error code on failure β not slay, something went wrong π
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/phy/mdio_device.cβ go read the source, iykyk π mdio_device_register_reset(9)mdio_device_unregister_reset(9)mdio_device_register(9)mdio_device_remove(9)mdio_probe(9)
all the rest of the friend group, fr fr π
ngl if this returns something negative, don't just ignore it β check the error code, bestie. the kernel does not do "eh, close enough" π
mwah, that's a wrap π this lil page lives in ./drivers/net/phy and it was dated October 2026 β yes, the future, she's ahead of her time ππ
π¦ 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