__phy_read_mmd(9)
πΈ __phy_read_mmd(9) πΈ
okay bestie, welcome to the Kernel API Manual β yes that Kernel API Manual, the one with the driest prose on planet earth, and we're about to make it cute π this one's about reading a register off an MMD sitting on a PHY. tiny function, big main character energy, let's go π«Ά
β¨ NAME β¨
__phy_read_mmd β a convenience function for reading a register from an MMD on a given PHY β¨ like it literally says on the tin, no cap
π¦ SYNOPSIS π¦
int __phy_read_mmd (struct phy_device *phydev , int devad , u32 regnum );
π ARGUMENTS π
phydevβ thephy_devicestruct, aka the PHY you're poking at πdevadβ the MMD you're reading from, valid range is0..31πregnumβ the register on that MMD you wanna read, valid range is0..65535β
not me stressing the ranges βdevadis0..31andregnumis0..65535, that's the whole vibe check, don't come for me π
π DESCRIPTION π
Same rules as for __phy_read β yep, that's it, that's the description, the kernel devs really said "iykyk" and dipped π
So like, if you already know how __phy_read behaves, you already know what's up here. if you don'tβ¦ maybe go read that one first bestie, I'm just the messenger π§
π SEE ALSO π
so many siblings, this function has a whole extended family fr fr β all chilling in the kernel file ./drivers/net/phy/phy-core.c:
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_write_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)
aaaand that's the whole page, you ate that π
quick little sign-off so we're being responsible: this icon lives in ./drivers/net/phy, dated October 2026, and it's filed under __phy_read_mmd(9) π bye bestie, go read some registers π¦
π¦ 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