hns_get_sset_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 string
    • 1 β†’ 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