phy_read_mmd(9)
π phy_read_mmd(9) β like, the Kernel API Manual, but make it make sense π
okay so bestie, welcome to the phy_read_mmd page from the Kernel API Manual β¨ this one's short and sweet and honestly iconic for it β no cap, we love a function that knows what it is π
πΈ NAME πΈ
phy_read_mmd β the convenience function for reading a register from an MMD on a given PHY π«Ά like, that's literally the whole gig, and she does it slayfully.
β¨ SYNOPSIS β¨
int phy_read_mmd (struct phy_device *phydev , int devad , u32 regnum );
look at her. three args. no drama. main character energy fr fr π
π¦ ARGUMENTS π¦
phydevβ thephy_devicestruct π this is your PHY babe, the whole point of the operation.devadβ the MMD you're reading from πΈ pick your girl wisely.regnumβ the register on that MMD you wanna read π the actual thing you came for.
π DESCRIPTION π
Same rules as for phy_read; β and that's it, that's the description π like she really said "go read phy_read, same vibes, bye" and honestly? Respect. The rules are the rules, periodt π§
π SEE ALSO π
Kernel file ./drivers/net/phy/phy-core.c β that's where the magic lives, iykyk β¨ and then the whole friend group, because this function does not exist in a vacuum bestie:
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)
ngl that's a whole squad π
if you're deep in drivers/net/phy you're gonna meet all of them eventually, so maybe screenshot this list π
and that's the page!! π shoutout to the source, ./drivers/net/phy, and the date, October 2026 β timestamped and archived like the little legend she is β 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