phy_write_mmd(9)
π phy_write_mmd(9) β the Kernel API Manual, bestie edition π
okay so you're in the kernel API manual (section 9, the fancy one β¨) and you found phy_write_mmd β congrats, you're about to write a register on an MMD on a given PHY. Iconic behaviour honestly π
πΈ 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 );
look at that signature. main character energy, no cap π
π¦ ARGUMENTS π¦
phydevβ thephy_devicestruct. your PHY, your moment π«devadβ the MMD to read from π (yes the original says "read from", we're keeping it fr fr)regnumβ the register on the MMD to read πvalβ value to write toregnum. this is the whole point bestie βοΈ
π DESCRIPTION π
same rules as for phy_write. that's literally the whole description and honestly? we stan a concise queen π
ngl it's giving "read the phy_write page too" β so go read it, iykyk π
π SEE ALSO π
kernel file ./drivers/net/phy/phy-core.c and like, an entire friend group of functions:
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)
all of them slay in their own way, go say hi π«Άβ¨
and that's the page!! sign-off time: this one lives in the source/version corner ./drivers/net/phy, dated October 2026 β so like, future-coded but make it kernel π°οΈπ bye bestie, go write that register π
π₯
π¦ 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