phy_save_page(9)
πΈ phy_save_page β NAME πΈ
phy_save_page π
β bestie, it grabs the bus lock and saves whatever page you're currently on β¨
β¨ SYNOPSIS β¨
int phy_save_page (struct phy_device *phydev );
π ARGUMENTS π
phydevβ a pointer to astruct phy_deviceπ«Ά (yes it's literally just the one argument, she's low maintenance, we love her)
π DESCRIPTION π
okay so here's the whole vibe π: phy_save_page takes the MDIO bus lock and then returns the current page number. That's it. That's the whole job. Iconic, honestly.
If something goes sideways, it returns a negative errno instead π β so do your vibe check on that return value, ngl.
π¨ real talk, this is the important part:phy_restore_pagemust always be called after this β irrespective of success or failure of this call. Like, no cap, always. Success, failure, whatever β you still callphy_restore_page. Don't leave her hanging bestie π
π¦ SEE ALSO π¦
Kernel file: ./drivers/net/phy/phy-core.c β that's where she lives π
and the whole friend group, fr fr π:
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_select_page(9)phy_restore_page(9)phy_read_paged(9)phy_write_paged(9)phy_modify_paged_changed(9)phy_modify_paged(9)
π sign-off π
okay that's the page, ily, go call phy_restore_page π§β¨
this little beauty comes to you from ./drivers/net/phy πΈ and she's dated October 2026 β yes, from the future, main character energy only ππ
π
phy_save_page(9) Β· Kernel API Manual Β· 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