hns_get_regs(9)
π hns_get_regs(9) π
okay so bestie, welcome to the Kernel API Manual entry for hns_get_regs β it's a kernel function page, section 9, and it's literally the vibe check for pulling net device registers. no cap, this one's short and sweet, so let's go β¨
β¨ NAME β¨
hns_get_regs β get net device register
like, it gets you the net device registers. that's the whole job. iconic behavior tbh π«Ά
πΈ SYNOPSIS πΈ
void hns_get_regs (struct net_device *net_dev , struct ethtool_regs *cmd
, void *data );
it returns void, meaning it hands nothing back to you β it does its thing and dips π
π¦ ARGUMENTS π¦
net_devβ the net device. the main character of this whole operation, fr fr.cmdβ the ethtool cmd. yes, that's the whole description, don't @ me, that's what the page says πΈdataβ the register data. this is where the goods go.
π SEE ALSO π
bestie there are so many siblings, it's giving big family energy π first up, the kernel file itself:
- Kernel file
./drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
and then 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_get_sset_count(9)hns_phy_led_set(9)hns_set_phys_id(9)hns_get_regs_len(9)hns_nic_nway_reset(9)
go read those too, iykyk π§
lowkey reminder: everything above is straight from the page β no invented lore, no made-up defaults.voidin,voidout, and the arguments are exactly the three listed. periodt π
and that's the whole page, bestie! π cute lil sign-off: this one came from the source path ./drivers/net/ethernet/hisilic... (yes, truncated just like that in the original, don't come for me π) and it's dated October 2026. mwah, go get those registers π
π¦ 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