__mdiobus_modify_changed(9)
π
__mdiobus_modify_changed β the kernel API manual, but make it make sense
okay so bestie, welcome to the __mdiobus_modify_changed(9) page from the Kernel API Manual β yes it's the unlocked version of the mdiobus_modify function, and yes we're gonna walk through it together like it's a group chat. π
β¨ NAME β¨
__mdiobus_modify_changed β the unlocked version of the mdiobus_modify function, no cap. π
πΈ SYNOPSIS πΈ
int __mdiobus_modify_changed (struct mii_bus *bus , int addr , u32
regnum , u16 mask , u16 set );
π¦ ARGUMENTS π¦
busβ themii_busstruct, the main character here π«Άaddrβ the phy address. which one? this one β¨regnumβ register number to modifymaskβ bit mask of bits to clearsetβ bit mask of bits to set
β RETURN β
1 if the register was modified, 0 if no change was needed, negative on any error condition. it's giving simple binary slay πβ¨
π DESCRIPTION π
Read, modify, and if any change, write the register value back to the device. that's literally it, that's the whole vibe π
π NOTE π
MUST NOT be called from interrupt context. fr fr, do not do this. not the move. π«
π₯ SEE ALSO π₯
Kernel file ./drivers/net/phy/mdio_bus.c β plus the whole squad, iykyk:
__mdiobus_read(9)__mdiobus_write(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)mdiobus_c45_modify_changed(9)
that's the whole page bestie, go forth and modify some registers (but not from interrupt context, bestie, I'm begging π). this came straight out of ./drivers/net/phy, dated October 2026 β luv u, bye ππ§ββοΈπ
π¦ 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