mdiobus_modify_changed(9)
β¨ mdiobus_modify_changed β¨
okay so bestie, quickest vibe check ever: this is the mdiobus_modify_changed page from the Kernel API Manual, and it's basically the "did anything actually change tho?" helper for tweaking an mdio device register. Read-modify-write but it tells you if it did anything. Obsessed. π
π NAME π
mdiobus_modify_changed β a convenience function for modifying a given mdio device register and returning whether it changed. literally its whole personality. no cap. π
π¦ SYNOPSIS π¦
int mdiobus_modify_changed (struct mii_bus *bus , int addr , u32 regnum
, u16 mask , u16 set );
five arguments, one very important return value, we love to see it β¨
πΈ ARGUMENTS πΈ
busβ themii_busstruct. the main character of this whole operation π«Άaddrβ the phy address. where your fave lives, basicallyregnumβ the register number to write. the exact spot we're touching β¨maskβ the bit mask of bits to clear. bye-bye bits πsetβ the bit mask of bits to set. hello bits π
π RETURN π
1β the register was modified (slay, something happened π₯)0β no change was needed (nothing to do, honestly valid π)- negative β any error condition (not the vibe, but at least it told you π)
π SEE ALSO π
Kernel file ./drivers/net/phy/mdio_bus.c and its whole friend group:
__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_c45_modify_changed(9)
all iconic, all worth a read, iykyk π§π
okay and that's the whole page bestie β go forth and check your registers π¦π
<div align="center">πΈ from <code>./drivers/net/phy</code>, dated <strong>October 2026</strong> β mwah, see u in the kernel tree ππ </div>
π¦ 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