phylink_get_capabilities(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the kernel API manual for phylink_get_capabilities β€” yes it's a section 9 page, yes it's about networking, no you don't have to be scared 🫢


✨ NAME ✨

phylink_get_capabilities β€” get capabilities for a given MAC πŸ’…


🌸 SYNOPSIS 🌸

unsigned long phylink_get_capabilities (phy_interface_t interface ,
unsigned long mac_capabilities , int rate_matching );

like, that's the whole signature, no cap ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • interface β€” the phy interface mode, defined by typedef phy_interface_t. so this is your ~vibe~ of connection, iykyk 🌈
  • mac_capabilities β€” a bitmask of MAC capabilities. bitmask!! so it's a bunch of little yes/no flags all squished into one number, iconic honestly πŸ‘‘
  • rate_matching β€” the type of rate matching being performed. which flavour of rate matching we're doing rn πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

Get the MAC capabilities that are supported by the interface mode and mac_capabilities.

that's literally it, that's the whole function β€” you hand it an interface mode and a bitmask of MAC capabilities, and it gives you back the MAC capabilities that actually work for that combo. lowkey elegant, highkey useful πŸ’–

ngl it's giving "filter function but make it kernel networking" and honestly? obsessed 🧚

⭐ SEE ALSO ⭐

like, that's the whole phylink friend group fr fr β€” go read them, they're all icons πŸ’€βœ¨


kay that's the page!! this one came from ./drivers/net/phy and it's dated October 2026 β€” so mark your calendars bestie πŸ“…πŸ’œ go forth and get those capabilities, you're gonna slay πŸŽ€πŸ”₯

πŸ“¦ where this page comes from