__devm_mdiobus_register(9)
π __devm_mdiobus_register(9) β like, the whole vibe
okay so bestie, welcome to the Kernel API Manual β¨ this one is literally called __devm_mdiobus_register(9) and she is that girl β the resource-managed variant of mdiobus_register(). yes, the double-underscore is part of the name, don't @ me π
β¨ SYNOPSIS β¨
the whole thing in one breath, no cap:
int __devm_mdiobus_register (struct device *dev , struct mii_bus *bus ,
struct module *owner );
like, three args, one int, iconic behavior honestly π¦
πΈ ARGUMENTS πΈ
breaking it down one by one, because we don't gatekeep:
devβ the device you're registering themii_busfor. it's giving "who is this for" energy πbusβ the actual MII bus structure you want to register. the main character, fr fr πownerβ the owning module. gotta know whose module it is, iykyk π
π«Ά DESCRIPTION π«Ά
okay so here's the whole deal, and it's literally one line: it returns 0 on success, and a negative error number on failure. that's it. that's the tea β
lowkey love a short description, no yapping, periodt π
ngl bestie, if you get a negative number back, that's the failure vibe check β don't ignore it, go read the error π
π¦ SEE ALSO π¦
because we always cite our sources, bestie:
- the kernel file
./drivers/net/phy/mdio_devres.cπ devm_mdiobus_alloc_size(9)β the alloc bestie π§__devm_of_mdiobus_register(9)β the device-tree-flavored sibling π
π the cute sign-off π
and that's the page, bestie! πΈ this little beauty lives in ./drivers/net/phy, dated October 2026, and she answers to the name __devm_mdiobus_register(9) β so you already know where to find her again. mwah πβ¨π
π¦ 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