hns_get_sset_count(9)
π hns_get_sset_count(9) β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual β¨ today's main character is hns_get_sset_count, and honestly? she's short, she's sweet, she does exactly one thing. let's get into it π
πΈ NAME πΈ
hns_get_sset_count β literally just gets the string set count that nic_get_strings hands back π«Ά that's the whole vibe.
β¨ SYNOPSIS β¨
int hns_get_sset_count (struct net_device *netdev , int stringset );
no cap, that's the entire signature. copy it exactly, don't get cute with it π
π¦ ARGUMENTS π¦
netdevβ the net device, aka the whole point of the operation, the icon, the moment πstringsetβ the string set index. and listen, the mapping is not vibes-based, it's exact:0β self test string1β statistics string
that's it. two integers of destiny, iykyk π
π DESCRIPTION π
Return string set count.
like... that's the description. that's the whole thing. she returns the count of the string set. no plot twist, no lore, no dramatic backstory β just a return value and a dream π and honestly? respect. not every function needs a trilogy π
π₯ SEE ALSO π₯
so here's the group chat, and yes you are expected to know all of them π
kernel file: ./drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
and the whole friend group:
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_ethtool_stats(9), hns_get_strings(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)
nineteen besties. count them. i did. π§
ok that's the whole page bestie, go forth and sset_count responsibly π
and finally, the sign-off: this little masterpiece comes from the source ./drivers/net/ethernet/hisilic... (yes it's truncated in the original, we do not fix the canon π), dated October 2026 β slay, iconic, periodt β¨π
π«Ά
π¦ 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