__phy_write_mmd(9)
π
__phy_write_mmd(9) β from the Kernel API Manual, bestie
okay so listen up, because this one is lowkey a little shortcut function and it's giving "I do one thing and I do it well" energy β¨
πΈ NAME
__phy_write_mmd β the convenience function for writing a register on an MMD, on a given PHY. that's it, that's the whole vibe π
π¦ SYNOPSIS
int __phy_write_mmd (struct phy_device *phydev , int devad , u32 regnum , u16 val );
she takes four things and hands you back an int, periodt π
π ARGUMENTS
phydevβ thephy_devicestruct. your main character, the PHY herself π«Άdevadβ the MMD to read from. yes, that's what the manpage says, we're just relaying it π§regnumβ the register on the MMD to read. again, verbatim, don't come for me πvalβ the value to write toregnum. the actual payload, the reason we're all here π₯
π DESCRIPTION
Same rules as for __phy_write β that's it, that's the description. no cap. if you know __phy_write, you already know this one; they share the same rules, so go read that one for the deets, iykyk π
ngl, the original page is short and she's staying short. the facts are the facts, bestie π
π SEE ALSO
Kernel file ./drivers/net/phy/phy-core.c and honestly a whole friend group of functions, all of them iconic, all of them linked here so you can go say hi π
phy_speed_to_str(9)phy_duplex_to_str(9)phy_rate_matching_to_str(9)phy_fix_phy_mode_for_mac_delays(9)phy_interface_num_ports(9)phy_set_max_speed(9)of_set_phy_timing_role(9)phy_resolve_aneg_pause(9)phy_resolve_aneg_linkmode(9)phy_check_downshift(9)__phy_read_mmd(9)phy_read_mmd(9)phy_write_mmd(9)phy_modify_changed(9)__phy_modify(9)phy_modify(9)__phy_modify_mmd_changed(9)phy_modify_mmd_changed(9)__phy_modify_mmd(9)phy_modify_mmd(9)phy_save_page(9)phy_select_page(9)phy_restore_page(9)phy_read_paged(9)phy_write_paged(9)phy_modify_paged_changed(9)phy_modify_paged(9)
and that's the whole page, bestie π huge shoutout to the ./drivers/net/phy directory for hosting all this excellence, and to the October 2026 edition of the Kernel API Manual for shipping it β slay, ate, no crumbs ππ¦β¨
π¦ 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