__mdiobus_c45_read(9)
Hiii bestie π welcome to the __mdiobus_c45_read(9) page in the Kernel API Manual β we're getting into the unlocked MDIO read vibes, and yes, the lock part is lowkey the whole plot. Let's go π«Ά
π NAME π
__mdiobus_c45_read β the unlocked version of the mdiobus_c45_read function. Periodt.
β¨ SYNOPSIS β¨
int __mdiobus_c45_read (struct mii_bus *bus , int addr , int devad , u32
regnum );
πΈ ARGUMENTS πΈ
busβ themii_busstruct, aka the bus bestie in question πaddrβ the phy addressdevadβ device address to readregnumβ register number to read
π« RETURN π«
The register value if successful, negative error code on failure. That's it, that's the return situation π₯
π¦ DESCRIPTION π¦
Okay so this reads a MDIO bus register β iconic behavior, truly. But listen: the caller must hold the mdio bus lock. This function is the unlocked version, so it is literally trusting you to have handled that already. Do not make it regret trusting you, bestie π
β οΈ NOTE β οΈ
MUST NOT be called from interrupt context. Like, genuinely do not do that. This is a hard no, not a soft no π
π SEE ALSO π
The kernel file is right here: ./drivers/net/phy/mdio_bus.c β and the whole fam is pulling up too:
__mdiobus_read(9)__mdiobus_write(9)__mdiobus_modify_changed(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)
Catch you later, bestie π«Ά β this page is from source/version ./drivers/net/phy, dated October 2026, under __mdiobus_c45_read(9) in the Kernel API Manual. Mwah πβ¨
π¦ 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