hns_get_regs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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:

go read those too, iykyk 🧚


lowkey reminder: everything above is straight from the page β€” no invented lore, no made-up defaults. void in, void out, 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