iavf_get_link_ksettings(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, this is our bonding era 🫢. This page is all about iavf_get_link_ksettings, and honestly? she's a little liar. In the cute way. You'll see.


✨ NAME ✨

iavf_get_link_ksettings β€” Get Link Speed and Duplex settings 🌈


πŸŽ€ SYNOPSIS πŸŽ€

int iavf_get_link_ksettings (struct net_device *netdev , struct
ethtool_link_ksettings *cmd );

like, that's the whole signature. she takes two pointers and hands you back an int. no cap. πŸ’…


🌸 ARGUMENTS 🌸

  • netdev β€” the network interface device structure πŸ’œ (your actual NIC energy, the main character)
  • cmd β€” the ethtool command πŸŽ€ (where the answer goes)

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does she do? She reports speed/duplex settings ✨ β€” that's the whole job.

But here's the tea β˜• and I need you to sit with it: because this is a VF, we straight-up don't know what kind of link we really have. Nobody told us. We are not in the loop. So... we fake it. πŸ™ˆπŸ’€

fr fr β€” the driver does not know the real link state in this case, and the manpage says the settings reported here are fabricated. Don't treat them as gospel, bestie, they're vibes-based 😭

That's it. That's the function. She lies about link speed with full confidence and honestly? iconic πŸ‘‘.


⭐ SEE ALSO ⭐

Everything she's friends with, iykyk πŸ’… β€” first up, the kernel file she lives in: ./drivers/net/ethernet/intel/iavf/iavf_ethtool.c, plus struct iavf_stats(9) and the whole friend group:

go read them too, be nosy, that's how you learn πŸ§šβ€β™€οΈ


mwah πŸ’‹ that's the page β€” brought to you by the fine folks in ./drivers/net/ethernet/intel/iavf, dated October 2026, and yes the manual is literally called iavf_get_link_ksettings(9). slay, go fake some link settings responsibly πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from