__iavf_add_stat_strings(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __iavf_add_stat_strings(9) β€” like, the Kernel API Manual one, bestie

okay so this is a kernel API page, no cap, and it's about copying stat strings into an ethtool buffer. it's giving "small helper, huge responsibility" energy and honestly? we're obsessed. πŸŽ€


✨ SYNOPSIS ✨

void __iavf_add_stat_strings (u8 **p , const struct iavf_stats stats[] ,
const unsigned int size , ... );

like, yes, that's the whole thing. she's little but she's mighty πŸ’ͺ


🌸 ARGUMENTS 🌸

  • p β€” the buffer that ethtool was like "here u go" and handed over πŸ’–
  • stats β€” the stat definitions array, aka the lore of what counts as a stat
  • size β€” how big the stats array is, fr fr, we need to know πŸ“
  • ... β€” variable arguments, the mysterious ones, main character energy honestly πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

so basically: format the strings that stats describes, then copy them into the buffer that p is pointing at. that's it. that's the job. she formats, she copies, she slays. periodt ✨

ngl it's a tiny function, but don't sleep on it β€” every single stat string you see came through here at some point πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, in order, no one gets left behind 🫢:

Kernel file ./drivers/net/ethernet/intel/iavf/iavf_ethtool.c and struct iavf_stats(9), iavf_add_one_ethtool_stat(9), __iavf_add_ethtool_stats(9), iavf_add_ethtool_stats(9), iavf_add_queue_stats(9), iavf_add_stat_strings(9), iavf_get_link_ksettings(9), iavf_get_sset_count(9), iavf_get_ethtool_stats(9), iavf_get_stat_strings(9), iavf_get_strings(9), iavf_get_msglevel(9), iavf_set_msglevel(9), iavf_get_drvinfo(9), iavf_get_ringparam(9), iavf_set_ringparam(9), __iavf_get_coalesce(9), iavf_get_coalesce(9), iavf_get_per_queue_coalesce(9), iavf_set_itr_per_queue(9), __iavf_set_coalesce(9), iavf_set_coalesce(9), iavf_set_per_queue_coalesce(9), iavf_fltr_to_ethtool_flow(9), iavf_ethtool_flow_to_fltr(9), iavf_is_mask_valid(9), iavf_parse_rx_flow_user_data(9), iavf_fill_rx_flow_ext_data(9), iavf_get_ethtool_fdir_entry(9), iavf_get_fdir_fltr_ids(9), iavf_add_fdir_fltr_info(9), iavf_add_fdir_ethtool(9), iavf_del_fdir_ethtool(9), iavf_set_rxnfc(9), iavf_get_rx_ring_count(9), iavf_get_rxnfc(9), iavf_get_channels(9), iavf_set_channels(9), iavf_get_rxfh_key_size(9), iavf_get_rxfh_indir_size(9), iavf_get_rxfh(9), iavf_set_rxfh(9), iavf_set_ethtool_ops(9)

like yeah that's a lot of friends but they're all iconic, iykyk πŸ’€πŸ’–


πŸŽ€ sign-off πŸŽ€

this page lives in ./drivers/net/ethernet/intel/iavf, and it's stamped October 2026 β€” so yeah, future-core of it all. go forth and copy those stat strings, bestie, you've got this πŸ’…πŸŒˆβ­

πŸ“¦ where this page comes from