__devm_mdiobus_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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 the mii_bus for. 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 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