phy_caps_me...om_linkmodes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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