i40e_speed_to_link_speed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is a page from the Kernel API Manual β€” yeah, the big serious one β€” and it's literally about one little function, i40e_speed_to_link_speed, that turns a plain decimal speed into a fancy enum i40e_aq_link_speed. tiny function, big energy πŸ’…


🌸 NAME 🌸

i40e_speed_to_link_speed β€” bestie, it translates a decimal speed into an i40e_aq_link_speed, that's the whole vibe πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

enum i40e_aq_link_speed i40e_speed_to_link_speed (__u32 speed , const
struct ethtool_link_ksettings *ks );

like, that's the signature, no cap. two args, one return, let's go ✨


πŸ’– ARGUMENTS πŸ’–

  • speed β€” the speed, but in decimal. that's it. that's the number πŸ“
  • ks β€” the ethtool ksettings. (struct ethtool_link_ksettings *, const and everything, very demure) πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

it returns an i40e_aq_link_speed based on speed. that's the tea β˜• literally the whole plot. you hand it a speed, it hands you back the matching link speed enum, and honestly? iconic behavior πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

okay this is the part where the manpage goes absolutely feral and name-drops the entire friend group πŸ’€ and yes, we're listing every single one, because we don't gatekeep here:

like… it's giving "who's who of the i40e directory" and honestly we're obsessed 🫢 go read them, bestie, iykyk πŸ’œ


πŸ’Œ one last thing πŸ’Œ

this whole moment came to you from ./drivers/net/ethernet/intel/i40e, dated October 2026, and it's filed under i40e_speed_to_link_speed(9). mwah, love that for us πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from