hns_nic_get_link_ksettings(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, so we're deep in the <cyan>Kernel API Manual</cyan> today and this one is literally called hns_nic_get_link_ksettings β€” yes that's a mouthful, yes it's iconic, say it with your chest πŸ’…


✨ NAME ✨

hns_nic_get_link_ksettings β€” bestie this is the one that does the whole "implement ethtool get link ksettings" thing πŸŽ€ that's the job, that's the assignment, she's out here implementing ethtool's get-link-ksettings and she's slaying it ngl


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the exact signature, no cap, type it exactly like this:

int hns_nic_get_link_ksettings (struct net_device *net_dev , struct
ethtool_link_ksettings *cmd );

okay the way that she takes two pointers and returns an int… main character energy fr πŸ”₯


πŸ’– ARGUMENTS πŸ’–

  • net_dev β€” a net_device, that's it, that's the whole vibe 🫢 the network device bestie, she's just a pointer
  • cmd β€” an ethtool_link_ksettings, and heads up β€” the original literally says retuen 0 - success , negative --fail (yes, retuen, we're keeping it exactly, don't @ me 😭) so like: 0 means success and a negative value means fail πŸ’€
not me preserving the typo because the facts are sacred β€” 0 = success, negative = fail, periodt ✨

🌈 SEE ALSO 🌈

she lives in the kernel file ./drivers/net/ethernet/hisilicon/hns/hns_ethtool.c β€” that's her address, that's where she's at 🏠

and here's the whole friend group, all of them, in order, no one gets left out πŸ‘‘:

like, the roster is stacked πŸ’œ iykyk


and that's the whole page bestie!! 🧚 one last thing β€” the footer said ./drivers/net/ethernet/hisilic... dated October 2026, under the name hns_nic_get_link_ksettings(9) β€” so yeah, that's the source/version-and-date moment, consider it your cute lil sign-off πŸŽ€ mwah, go read some kernel source, ily πŸ’–

πŸ“¦ where this page comes from