phy_duplex_to_str(9)
π phy_duplex_to_str(9) β the Kernel API Manual glow-up π¦
okay so picture this: you're deep in the kernel, phy_duplex_to_str is literally right there in the Kernel API Manual, and she does exactly one thing but she does it flawlessly. no cap. β¨
πΈ NAME πΈ
phy_duplex_to_str β returns a string describing the duplex π
like⦠that's her whole job. she's the friend who translates the vibe of a duplex setting into actual words for you. iconic behavior fr.
β SYNOPSIS β
const char * phy_duplex_to_str (unsigned int duplex );
the way that return type is const char *β¦ she hands you a string and she is not letting you touch it. read-only queen ππ
π«Ά ARGUMENTS π«Ά
duplexβ the duplex setting you want described, bestie. that's it. that's the whole parameter. you hand her the setting, she tells you what it is in string form. slay π
π₯ SEE ALSO π₯
okay this is the part where she name-drops her entire friend group and honestly? every single one of them is a baddie. no skips, we're listing all 27 because that's what the page says and i'm not about to do any of them dirty π
first up, the source of truth:
- Kernel file
./drivers/net/phy/phy-core.c
and now the crew, in order, exactly as they appear:
phy_speed_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_changed(9)phy_modify_paged(9)
27 links. twenty. seven. she said "i have a community" and she meant it πβ¨
ngl bestie, if you're hunting for a function that actually does more than turn a duplex into a stringβ¦ this is your moment, the whole list is right above. go click something. iykyk π¦
π§ sign-off π§
so yeah β that's phy_duplex_to_str(9), living in ./drivers/net/phy, dated October 2026, doing her little string-returning thing with full main character energy πβ
go forth, describe those duplexes, and remember: it's giving helper function, and helper functions are the backbone of the kernel πππ«Ά
π¦ 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