hns_nic_get_link_ksettings(9)
πΈ hns_nic_get_link_ksettings(9) πΈ
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β anet_device, that's it, that's the whole vibe π«Ά the network device bestie, she's just a pointercmdβ anethtool_link_ksettings, and heads up β the original literally saysretuen 0 - success , negative --fail(yes,retuen, we're keeping it exactly, don't @ me π) so like:0means 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 π:
hns_nic_get_link(9)hns_nic_set_link_ksettings(9)__lb_run_test(9)hns_nic_self_test(9)hns_nic_get_drvinfo(9)hns_get_ringparam(9)hns_get_pauseparam(9)hns_set_pauseparam(9)hns_get_coalesce(9)hns_set_coalesce(9)hns_get_channels(9)hns_get_ethtool_stats(9)hns_get_strings(9)hns_get_sset_count(9)hns_phy_led_set(9)hns_set_phys_id(9)hns_get_regs(9)hns_get_regs_len(9)hns_nic_nway_reset(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms