phy_caps_speeds(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ phy_caps_speeds(9) ✨

okay bestie, so this is a page straight out of the Kernel API Manual and it's literally called phy_caps_speeds β€” say that three times fast, i dare you πŸ’…


🌸 NAME 🌸

phy_caps_speeds β€” fills up an array with all the supported SPEED_* values for whatever modes you hand it πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

size_t phy_caps_speeds (unsigned int *speeds , size_t size , unsigned long *linkmodes );

πŸ’– ARGUMENTS πŸ’–

  • speeds β€” the output array where the speeds list goes, like this is the lil bucket you're filling up πŸͺ£
  • size β€” how big that output array is, aka how much room your bucket has
  • linkmodes β€” the linkmodes you're pulling the speeds from, the source of truth fr fr

πŸ”₯ DESCRIPTION πŸ”₯

So what it does is β€” it fills the speeds array with all the possible speeds that can actually be achieved with the linkmodes you specified. every single one. no cap. it's giving "here's everything you could possibly hit" energy ✨


🌈 RETURN 🌈

It returns the number of speeds it filled into the array. and listen β€” if your input array isn't big enough to hold all the speeds? it still fills it as much as possible instead of just giving up 😭 queen behaviour honestly πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/phy/phy_caps.c β€” and the whole friend group:


πŸ’œ and that's the whole vibe! this lil icon lives over in ./drivers/net/phy, dated October 2026, and yes it's still phy_caps_speeds(9) β€” go stan 🫢🌸

πŸ“¦ where this page comes from