stmmac_mdio_write_c22(9)
π NAME
stmmac_mdio_write_c22 β bestie, this is the c22 (clause 22, the O.G. MDIO vibe) write hook for the stmmac driver. The manpage gives us literally zero extra prose here, so we're just gonna say it with our chest: it's the function that pushes data into an MII register. Slay. β¨
π SYNOPSIS
int stmmac_mdio_write_c22 (struct mii_bus *bus , int phyaddr , int
phyreg , u16 phydata );
That's the whole signature, no cap. Four args, one int coming back atcha. π«Ά
πΈ ARGUMENTS
busβ points to themii_busstructure π like, this is the bus we're doing the writing on, periodt.phyaddrβ MII addr π the address of the PHY we're talking to. Lowkey important.phyregβ MII reg π which register inside that PHY is getting the goods.phydataβ phy data β¨ the actualu16payload. This is the moment. The main character.
π¦ DESCRIPTION
okay so, real talk: it writes the data into the MII register from within the device. π That's it, that's the whole description, and honestly the source said it best so we're keeping it exactly. The data goes in, the register gets it, the device does its thing. Iconic behaviour, fr fr. π₯
π SEE ALSO
- Kernel file
./drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.cβ the actual home of all this magic, go read it iykyk π stmmac_mdio_format_addr(9)stmmac_mdio_read_c22(9)stmmac_mdio_read_c45(9)stmmac_mdio_write_c45(9)stmmac_mdio_reset(9)stmmac_clk_csr_set(9)stmmac_mdio_register(9)stmmac_mdio_unregister(9)
like the whole stmmac_mdio friend group, we love a supportive squad π«Άπ
ngl, if you came here looking for a 40-flag options list, this page is not that girl β the original had no options section and neither do we. Facts only, bestie. π
that's a wrap! πΈ brought to you by ./drivers/net/ethernet/stmicro... vibes, dated October 2026, and yes we're still serving stmmac_mdio_write_c22(9) energy. 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