mdiobus_c45_modify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mdiobus_c45_modify β€” the Kernel API Manual, but make it cute πŸŽ€

okay so bestie, this one lives in the kernel API manual (that's the (9) section, iykyk) and honestly? it's giving "convenience function" in the best way possible. let's get into it ✨


🌸 NAME 🌸

mdiobus_c45_modify β€” a convenience function for modifying a given mdio device register. that's it. that's the whole vibe. it modifies, it's convenient, it slays πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int mdiobus_c45_modify (struct mii_bus *bus , int addr , int devad , u32
regnum , u16 mask , u16 set );

no cap, that's the whole signature. six arguments, one int coming back at you. let's break down who's who 🫢


✨ ARGUMENTS ✨

  • bus β€” the mii_bus struct. this is the main character of the whole operation, fr fr πŸŽ€
  • addr β€” the phy address. gotta know which phy we're talking to, obviously.
  • devad β€” device address to read. (yes, that's what it says, and yes, we're keeping it exactly like that πŸ’€)
  • regnum β€” register number to write.
  • mask β€” bit mask of bits to clear. this is the "what are we yeeting" list 🌈
  • set β€” bit mask of bits to set. this is the "what are we blessing" list ⭐

πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” the slay outcome πŸ‘‘
  • negative on any error condition β€” the not-slaying outcome, and it means something went wrong 😭
ngl bestie, if you get a negative number back, don't just ✨manifest✨ it away. something is genuinely up.

🧚 SEE ALSO 🧚

these are all the sibling functions, and honestly the whole friend group is iconic:

like, that's the whole group chat right there πŸ’œ go read them, they all ate πŸ”₯


and that's the page, bestie!! πŸ“ source is ./drivers/net/phy, dated October 2026, and the manual name is mdiobus_c45_modify(9) in case you forgot already πŸ˜­πŸ’– mwah, go modify some registers responsibly πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from