phy_modify(9)
π phy_modify(9) π
okay so bestie, welcome to the Kernel API Manual β this one is literally phy_modify(9), and it's giving "tiny convenience function with main character energy." Let's get into it. π
β¨ NAME β¨
phy_modifyβ convenience function for modifying a given PHY register π
πΈ SYNOPSIS πΈ
int phy_modify (struct phy_device *phydev , u32 regnum , u16 mask , u16
set );
π¦ ARGUMENTS π¦
phydevβ thephy_devicestruct πregnumβ register number to write βοΈmaskβ bit mask of bits to clear π§Ήsetβ new value of bits set inmaskto write toregnumπ«
π NOTE π
MUST NOT be called from interrupt context, bestie. Like, MUST NOT. π Because the bus read/write functions may wait for an interrupt to conclude the operation. So yeah β not the vibe for interrupt context, fr fr. π
π SEE ALSO π
Kernel file ./drivers/net/phy/phy-core.c β and literally all of these icons:
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_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)
mwah π this page lives under ./drivers/net/phy, dated October 2026, and it's literally phy_modify(9) signing off. slay. π«Άβ¨
π¦ 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