phylink_validate_mask_caps(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual πŸ’– β€” this page is all about phylink_validate_mask_caps, aka the β€œrestrict link modes based on caps” function. No cap, it’s giving very specific kernel energy.


🌸 NAME 🌸

phylink_validate_mask_caps β€” Restrict link modes based on caps ✨

✨ SYNOPSIS ✨

bestie, here’s the exact signature β€” do not @ me, just copy it carefully:
void phylink_validate_mask_caps (unsigned long *supported , struct
       phylink_link_state *state , unsigned long mac_capabilities );

πŸŽ€ ARGUMENTS πŸŽ€

  • supported β€” ethtool bitmask for supported link modes. πŸ’…
  • state β€” pointer to a struct phylink_link_state. 🫢
  • mac_capabilities β€” bitmask of MAC capabilities. πŸ”₯

πŸ’– DESCRIPTION πŸ’–

Okay so what it does: it calculates the supported link modes based on mac_capabilities, and then restricts supported and state based on that. Slay. ✨

Use this function if your capabilities aren’t constant β€” like when they vary depending on the interface. That’s the whole vibe check: not a fixed set of caps, so the supported link modes need that little adjustment. πŸ¦‹

πŸ¦‹ SEE ALSO πŸ¦‹

the whole phylink extended universe, periodt:


okay bestie, that’s the page πŸ’– source/version: ./drivers/net/phy Β· date: October 2026 Β· page: phylink_validate_mask_caps(9). periodt πŸŽ€

πŸ“¦ where this page comes from