mdio_driver_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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-new mdio_driver you 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 πŸ¦‹

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