phylink_caps_to_linkmodes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual page for phylink_caps_to_linkmodes(9). this one's short and sweet and honestly kind of a little slay πŸ’–


🌸 NAME 🌸

phylink_caps_to_linkmodes β€” literally converts capabilities into ethtool link modes, that's the whole vibe πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

void phylink_caps_to_linkmodes (unsigned long *linkmodes , unsigned long caps );

✨ ARGUMENTS ✨

  • linkmodes β€” the ethtool linkmode mask. and listen, it must be already initialised, no cap 🫢 like it's not optional, it's giving "you better have done this already".
  • caps β€” the bitmask of MAC capabilities. this is the input glow-up material πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

so what does it do? it sets all possible pause, speed and duplex linkmodes inside linkmodes that are supported by caps. iconic behavior honestly πŸ‘‘

and again, because it bears repeating: linkmodes must have been initialised previously. that's the rule, periodt πŸ’€

⚠️ quick vibe check: the initialisation thing is not a suggestion, bestie β€” get that done first or it's not gonna go well 😭

🌈 SEE ALSO 🌈

okay this part is long, but every single one of these is a real reference and we're not skipping any of them, iykyk πŸ’œ


and that's the whole page, bestie!! 🧚 shoutout to the source path ./drivers/net/phy and the date October 2026, and the title phylink_caps_to_linkmodes(9) keeping it all official πŸ’– see u in the next manpage, mwah 🫢✨

πŸ“¦ where this page comes from