hns_get_ethtool_stats(9)
β¨ hns_get_ethtool_stats(9) β¨
okay so bestie, welcome to the hns_get_ethtool_stats(9) page π this is a Kernel API Manual moment, and it's giving "one tiny function that hands you The Numbers." let's get into it π«Ά
πΈ NAME πΈ
hns_get_ethtool_stats β get detail statistics. that's it, that's the whole job. it gets you the detailed stats. slay π
π¦ SYNOPSIS π¦
void hns_get_ethtool_stats (struct net_device *netdev , struct ethtool_stats *stats , u64 *data );
heads up: it returns void β no return value era, it just does the thing and dips π
π ARGUMENTS π
netdevβ the net device. literally the network device we're talking about, main character energy πstatsβ statistics info. this is the stats struct carrying the info about the stats πdataβ statistics data. the actual numbers land here, no cap π₯
π SEE ALSO π
the kernel file lives right here, go peek:
./drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
and here's the whole friend group, all 19 of them, all iconic β¨
hns_nic_get_link(9)hns_nic_get_link_ksettings(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_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)
ngl bestie, if you're ever lost in a sea of hns_* ethtool functions, this list is your group chat. screenshot it πΈ
aaaand that's the page!! this one's from the Kernel API Manual, section 9, source path is that truncated li'l guy ./drivers/net/ethernet/hisilic... and it's dated October 2026 β so go forth and get those detail statistics, mwah ππβ
π¦ 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