idpf_add_one_ethtool_stat(9)
π idpf_add_one_ethtool_stat(9) π
okay so this is a page from the Kernel API Manual bestie, and it's about one tiny little helper that copies a stat into the buffer you hand it. short king behavior, honestly. π
β¨ SYNOPSIS β¨
void idpf_add_one_ethtool_stat (u64 *data , const void *pstat , const struct idpf_stats *stat );
πΈ ARGUMENTS πΈ
dataβ the spot where you want the stat value to land. it's where the copying to happens, bestie πpstatβ the old stat pointer, aka where we're copying from. the source of truth, the original, the blueprint π¦statβ the stat definition itself. the little struct that tells us what we're even dealing with β¨
π DESCRIPTION π
so here's the vibe: it copies the stat data that's defined by the pointer + stat structure pair into the memory you passed in as data. that's it. that's the whole job. π«Ά
but β and this is the important part β if the pointer is null, then data gets zero'd instead. no pointer, no data, so it just fills it with zeros. lowkey considerate of it, ngl π
no surprises here, it's giving "small function that does exactly one thing and does it well." main character energy, honestly π
π SEE ALSO π
okay buckle up bestie, this list is LONG, but every single one of these is part of the same little idpf ethtool family and they all ate π
- kernel file
./drivers/net/ethernet/intel/idpf/idpf_ethtool.c idpf_get_rx_ring_count(9),idpf_get_rxnfc(9),idpf_add_flow_steer(9),idpf_del_flow_steer(9),idpf_get_rxfh_key_size(9),idpf_get_rxfh_indir_size(9),idpf_get_rxfh(9),idpf_set_rxfh(9)idpf_get_channels(9),idpf_set_channels(9),idpf_get_ringparam(9),idpf_set_ringparam(9)struct idpf_stats(9)__idpf_add_qstat_strings(9),idpf_add_qstat_strings(9),idpf_add_stat_strings(9),idpf_get_stat_strings(9),idpf_get_strings(9),idpf_get_sset_count(9)idpf_add_queue_stats(9),idpf_add_empty_queue_stats(9),idpf_add_port_stats(9),idpf_collect_queue_stats(9),idpf_get_ethtool_stats(9)idpf_find_rxq_vec(9),idpf_find_txq_vec(9)__idpf_get_q_coalesce(9),idpf_get_q_coalesce(9),idpf_get_coalesce(9),idpf_get_per_q_coalesce(9)__idpf_set_q_coalesce(9),idpf_set_q_coalesce(9),idpf_set_coalesce(9),idpf_set_per_q_coalesce(9)idpf_get_msglevel(9),idpf_set_msglevel(9)idpf_get_link_ksettings(9),idpf_get_timestamp_filters(9),idpf_get_ts_info(9),idpf_get_ts_stats(9),idpf_set_ethtool_ops(9)
and that's the whole page, bestie, you're officially an idpf stat expert π§π this came out of ./drivers/net/ethernet/intel/idpf and it's dated October 2026 β go forth and copy those stats, ily, bye! πΈπ
π¦ 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