i40e_get_link_ksettings(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

i40e_get_link_ksettings β€” okay bestie, this is the one that grabs the link speed and duplex settings for you πŸ’– (and yes, this is the Kernel API Manual, hi, welcome, come in πŸŽ€)


🌸 SYNOPSIS 🌸

int i40e_get_link_ksettings (struct net_device *netdev , struct
ethtool_link_ksettings *ks );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • netdev β€” the network interface device structure, aka the whole vibe of the NIC you're asking about 🌈
  • ks β€” ethtool ksettings, the lil container where the answer goes ✨

πŸ’… DESCRIPTION πŸ’…

So the way this works is: it reports the speed/duplex settings, and it figures all of that out based on media_type. That's it, that's the whole function, no cap 😭 it's giving "small but crucial" and honestly we're obsessed.


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ethernet/intel/i40e/i40e_ethtool.c πŸ“ β€” and then the entire friend group, fr fr, they all go together:


okay that's the whole page, ily, go read your NIC stats πŸ’œ This lil masterpiece lives in ./drivers/net/ethernet/intel/i40e, dated October 2026, and it's filed under i40e_get_link_ksettings(9) β€” mwah, bye bestie 🫢✨

πŸ“¦ where this page comes from