phy_modify_paged_changed(9)
π NAME π
phy_modify_paged_changed β bestie, it's the function for modifying a paged register β¨ (yes that's the whole vibe, it does exactly what it says on the tin π)
This one lives in the Kernel API Manual, so likeβ¦ kernel-level stuff, no cap π
π¦ SYNOPSIS π¦
int phy_modify_paged_changed (struct phy_device *phydev , int page , u32
regnum , u16 mask , u16 set );
Like, that's the whole call signature, copy it exactly or the compiler will simply end you π
πΈ ARGUMENTS πΈ
phydevβ a pointer to astruct phy_device(literally the star of the show, the phy in question π«Ά)pageβ the page for the phy (yep, pages within the phy, she's paged π)regnumβ register number (which register we're messing with π’)maskβ bit mask of bits to clear (these bits? cleared. gone. bye π)setβ bit mask of bits to set (these bits? set. iconic π)
β¨ DESCRIPTION β¨
okay so here's the tea β β this function returns:
- a negative
errnoif something went wrong π¬ 0if there was no change (nothing happened, anticlimactic honestly)1in case of change π₯ (slay, something actually moved)
That's it. That's the whole description. Short king behavior ngl π
fr fr if you're checking the return value,0and1are both "no error" β don't go treating0as failure, that's a vibe check you'd fail π
π§ SEE ALSO π§
Kernel file ./drivers/net/phy/phy-core.c β that's where the magic lives, iykyk π¦
And the whole friend group, in order, no gatekeeping:
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_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(9)
That's the whole page bestie, go forth and modify those paged registers πβ¨
Sign-off time π β this lil masterpiece comes from ./drivers/net/phy, dated October 2026. Bestie certified, kernel approved, periodt π
π
π¦ 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