__mdiobus_c4...dify_changed(9)
π
__mdiobus_c45_modify_changed β Kernel API Manual β¨
okay so bestie, welcome to the Kernel API Manual entry for __mdiobus_c45_modify_changed(9) π this is the unlocked version of the mdiobus_modify function, and yes she has main character energy but she also has rules, so let's get into it π«Ά
β¨ NAME β¨
__mdiobus_c45_modify_changed β the Unlocked version of the mdiobus_modify function ππ
πΈ SYNOPSIS πΈ
int __mdiobus_c45_modify_changed (struct mii_bus *bus , int addr , int
devad , u32 regnum , u16 mask , u16 set );
π ARGUMENTS π
busβ themii_busstruct, she's the whole vibe holder fraddrβ the phy addressdevadβ device address to readregnumβ register number to modify, like the exact little spot we're messing withmaskβ bit mask of bits to clear π§Ήsetβ bit mask of bits to set πͺ
π¦ RETURN π¦
- Returns
1if the register was modified π₯ - Returns
0if no change was needed (respect, lowkey) - Returns a negative value on any error condition π
π DESCRIPTION π
So the way this works is: read, modify, and if there's any change, write the register value back to the device. That's literally the whole loop, she ate π
Any error returns a negative number π«Ά
π NOTE π
MUST NOT be called from interrupt context. not me stressing this, but please, bestie, do not do it π
β SEE ALSO β
Kernel file ./drivers/net/phy/mdio_bus.c π and all her friends:
__mdiobus_read(9)__mdiobus_write(9)__mdiobus_modify_changed(9)__mdiobus_c45_read(9)__mdiobus_c45_write(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)mdiobus_c45_modify_changed(9)
okay that's the whole page, ily, go forth and modify responsibly π§π
source: ./drivers/net/phy Β· October 2026 Β· __mdiobus_c4...dify_changed(9) β mwah, see u in the next manpage bestie ππ
π¦ 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