phy_caps_speeds(9)
β¨ 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 haslinkmodesβ 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:
phy_caps_init(9)phy_caps_lookup_by_linkmode(9)phy_caps_lookup_by_linkmode_rev(9)phy_caps_lookup(9)phy_caps_linkmode_max_speed(9)phy_caps_valid(9)phy_caps_linkmodes(9)phy_caps_from_interface(9)phy_caps_medium_get_supported(9)phy_caps_mediums_from_linkmodes(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms