ice_set_phy_type_from_speed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ice_set_phy_type_from_speed(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's a function page, and yes the function is literally named ice_set_phy_type_from_speed, we love a descriptive king πŸ‘‘


✨ NAME ✨

ice_set_phy_type_from_speed β€” sets phy_types based on speeds and advertised modes πŸŽ€

like. that's the whole gig. it looks at what you're advertising and figures out which phy types match. iconic behavior, no notes πŸ’…


🌸 SYNOPSIS 🌸

void ice_set_phy_type_from_speed (const struct ethtool_link_ksettings *ks , u64 *phy_type_low , u64 *phy_type_high , u16 adv_link_speed );

returns void btw β€” it's not gonna hand you anything back, it just does the thing and dips 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ks β€” the ethtool link ksettings struct 🧚 this is your source of truth, the settings container itself
  • phy_type_low β€” a pointer to the lower part of phy_type ⬇️ yes bestie she's split in two, keep up
  • phy_type_high β€” a pointer to the higher part of phy_type ⬆️ the other half of the duo, main character energy fr fr
  • adv_link_speed β€” the targeted link speeds bitmap 🌈 a bitmap, so think flags-in-a-big-number, iykyk
ngl the split into low/high is just how it's stored β€” the docs say "lower part" and "higher part," and we are not out here inventing extra lore πŸ”₯

⭐ SEE ALSO ⭐

the literal kernel file this lives in, first of all:

  • ./drivers/net/ethernet/intel/ice/ice_ethtool.c

aaaaand the friend group πŸ‘‘ (yes this is a long list, yes you should still read it, the ice driver has a lot of functions and we respect the hustle):

literally the whole ethtool cinematic universe, and you got a front-row seat πŸ“


okay that's the page!! this one comes straight out of ./drivers/net/ethernet/intel/ice and it's dated October 2026, and yes, the header at the top and the ice_set_phy_type_from_speed(9) footer are both doing their little bookend thing πŸ’œ thanks for reading bestie, go set some phy types, you got this πŸŽ€βœ¨

πŸ“¦ where this page comes from