phy_caps_me...om_linkmodes(9)
okay so bestie, this one is straight out of the Kernel API Manual and it's literally just a little translator function β you hand it linkmodes, it hands you back mediums. that's the whole vibe. let's get into it π
β¨ NAME β¨
phy_caps_mediums_from_linkmodes β get all the mediums out of a linkmodes list, no cap π«Ά
πΈ SYNOPSIS πΈ
u32 phy_caps_mediums_from_linkmodes (unsigned long *linkmodes );
like yes that's the entire signature, she's lowkey tiny but she's doing her job π
π ARGUMENTS π
linkmodesβ a bitset of linkmodes, and that's what we're pulling the mediums from. that's it, that's the whole input π¦
β RETURN β
a u32 bitset of ETHTOOL_MEDIUM_XXX values, and it corresponds to all the medium types chillin' in the linkmodes list. every single one. she's thorough like that π
π₯ SEE ALSO π₯
kernel file ./drivers/net/phy/phy_caps.c β that's where the magic lives, go look π
the whole friend group, in order bestie:
phy_caps_init(9)phy_caps_speeds(9)phy_caps_lookup_by_linkmode(9)phy_caps_lookup_by_linkmode_rev(9)phy_caps_lookup(9)phy_caps_linkmode_max_speed(9)phy_caps_valid(9)phy_caps_linkmodes(9)phy_caps_from_interface(9)phy_caps_medium_get_supported(9)
ngl the header on this one is literally phy_caps_me...om_linkmodes(9) β truncated mid-word and everything π iconic behavior, we love a dramatic ellipsis
and that's the whole page, bestie!! π§π this lil guy lives in ./drivers/net/phy and the page is dated October 2026 β mwah, go forth and convert your linkmodes ππ
π¦ 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