hns_nic_set_link_ksettings(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to hns_nic_set_link_ksettings(9), straight out of the Kernel API Manual β€” manual name folded in near the top, cute and accounted for. This is the little kernel function that implements ethtool set link ksettings, and we're gonna go through it with the quickness. ✨


🌸 NAME 🌸

hns_nic_set_link_ksettings β€” implement ethtool set link ksettings. that's the assignment, no cap. πŸ’…

✨ SYNOPSIS ✨

here's the signature, copied exactly, character-for-character, because we do not play about code in this group chat:

int hns_nic_set_link_ksettings (struct net_device *net_dev , const
       struct ethtool_link_ksettings *cmd );

πŸŽ€ ARGUMENTS πŸŽ€

  • net_dev β€” a net_device. that's the whole note for this one, bestie.
  • cmd β€” an ethtool_link_ksettings; the page's return note is literally retuen 0 - success , negative --fail β€” so 0 is the success slay and negative is the --fail case 😭.
tiny bestie heads-up: that retuen spelling? it's in the original, so i'm keeping it exactly. periodt. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./drivers/net/ethernet/hisilicon/hns/hns_ethtool.c, and these are the whole SEE ALSO crew β€” every single one, no skipping:


okay that's the whole page, bestie 🫢 β€” source/version: ./drivers/net/ethernet/hisilic..., date: October 2026, and the manual is hns_nic_set_link_ksettings(9). periodt. πŸ’…

πŸ“¦ where this page comes from