mdiobus_c45_write_nested(9)
πΈ NAME πΈ
okay bestie, welcome to the mdiobus_c45_write_nested(9) page from the Kernel API Manual π
β this one is the nested version of the mdiobus_c45_write function. Nested! We love a layered moment. π
β¨ SYNOPSIS β¨
int mdiobus_c45_write_nested (struct mii_bus *bus , int addr , int devad , u32 regnum , u16 val );
π ARGUMENTS π
busβ themii_busstruct πaddrβ the phy address πdevadβ device address to read (that's the man page's wording, bestie β keeping it exactly) πregnumβ register number to write βοΈvalβ value to write toregnumπ
π RETURN π
Zero if successful π; negative error code on failure π. That's the vibe check, fr fr.
π DESCRIPTION π
So in case of nested MDIO bus access, this avoids lockdep false positives by using mutex_lock_nested. Lockdep stays unbothered, the nested access stays iconic. Periodt. π¦
β οΈ NOTE β οΈ
MUST NOT be called from interrupt context, because the bus read/write functions may wait for an interrupt to conclude the operation. Not me stressing this enough: interrupt context is a no-go, bestie. π
π SEE ALSO π
Kernel file: ./drivers/net/phy/mdio_bus.c
__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_modify(9)mdiobus_c45_modify(9)mdiobus_modify_changed(9)mdiobus_c45_modify_changed(9)
cute sign-off time π«Ά source/version: ./drivers/net/phy; date: October 2026; page: mdiobus_c45_write_nested(9). 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