hns_get_ringparam(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hns_get_ringparam(9) πŸ’…

okay bestie, welcome to section 9 of the Kernel API Manual β€” the kernel API zone, where all the driver lore lives. today's main character is hns_get_ringparam, and honestly? it's giving "quiet little getter that just wants to hand you your ring params." no cap. πŸŽ€


✨ NAME ✨

hns_get_ringparam β€” get ring parameter 🌸

like, that's literally the whole job. it gets the ring parameter. lowkey iconic for that.


πŸ¦‹ SYNOPSIS πŸ¦‹

void hns_get_ringparam (struct net_device *net_dev , struct
ethtool_ringparam *param , struct kernel_ethtool_ringparam *kernel_param
, struct netlink_ext_ack *extack );

notice that it returns void, bestie β€” it's not here to give you a status code, it's here to fill in your structs. main character energy. πŸ”₯


πŸ‘‘ ARGUMENTS πŸ‘‘

four arguments. four. we love a structured queen. πŸ’œ

  • net_dev β€” the net device. the whole reason we're here fr fr. 🌈
  • param β€” the ethtool parameter. this is the one getting the goods. ✨
  • kernel_param β€” the ethtool external parameter. yes, external. a separate thing. don't mix them up, i'm begging 😭
  • extack β€” the netlink extended ACK report struct. it's the receipt, basically. 🧚

πŸ” SEE ALSO πŸ”

bestie. buckle up. the hns family is huge and everyone wants a shoutout. πŸ’€

Kernel file ./drivers/net/ethernet/hisilicon/hns/hns_ethtool.c β€” that's the source of truth, go read it, iykyk. πŸ“–

and now the whole group chat:

go off, hns fam. πŸ«ΆπŸ’–


aaaand that's the page!! πŸŽ€ this lil beauty came from ./drivers/net/ethernet/hisilic... (yes, it's truncated like that, don't come for me πŸ™ˆ) and it's dated October 2026 β€” mark your calendars bestie, this manual page is a whole era. β­πŸ’…βœ¨

πŸ“¦ where this page comes from