mdiobus_c45_modify_changed(9)
π mdiobus_c45_modify_changed(9) π
okay so this is a page from the Kernel API Manual, and the main character is mdiobus_c45_modify_changed, bestie. It's the convenience-function friend who modifies a given mdio device register and tells you if it actually changed. No cap, that's the whole vibe. β¨
π NAME π
mdiobus_c45_modify_changed β Convenience function for modifying a given mdio device register and returning if it changed. It's giving βpoke the register, then report backβ energy, but make it kernel π
β¨ SYNOPSIS β¨
Here's the signature, copied exactly so nobody comes for me:
int mdiobus_c45_modify_changed (struct mii_bus *bus , int addr , int
devad , u32 regnum , u16 mask , u16 set );
The return type is int, and the function is mdiobus_c45_modify_changed. That's it, that's the synopsis. π«
π¦ ARGUMENTS π¦
busβ themii_busstruct. The bus bestie in question πaddrβ the phy address. Yes, lowercasephy, that's literally how the page says it.devadβ device address to read. The page says read β I'm just reporting the facts, bestie πregnumβ register number to write.maskβ bit mask of bits to clear.setβ bit mask of bits to set.
That's the whole cast. Don't get cute and skip one. π
π RETURN π
1if the register was modified.0if no change was needed.- negative on any error condition.
So 1 means it changed, 0 means no change was needed, and negative means any error condition. periodt. π
π SEE ALSO π
Kernel file ./drivers/net/phy/mdio_bus.c is where this lives. The whole friend group, in order:
__mdiobus_read(9)__mdiobus_write(9)__mdiobus_modify_changed(9)__mdiobus_c45_read(9)__mdiobus_c45_write(9)__mdiobus_c45_modify_changed(9)mdiobus_read_nested(9)mdiobus_read(9)mdiobus_c45_read(9)mdiobus_c45_read_nested(9)mdiobus_write_nested(9)mdiobus_write(9)mdiobus_c45_write(9)mdiobus_c45_write_nested(9)mdiobus_modify(9)mdiobus_c45_modify(9)mdiobus_modify_changed(9)
mwah π source/version: ./drivers/net/phy; date: October 2026; page: mdiobus_c45_modify_changed(9). Bye bestie, go modify some registers responsibly π«Άβ¨
π¦ 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