idpf_add_queue_stats(9)
π
idpf_add_queue_stats π
okay so this is a page from the Kernel API Manual and it's all about idpf_add_queue_stats, bestie. buckle up π
β¨ NAME β¨
idpf_add_queue_stats β copy queue statistics into the supplied buffer π«Ά
πΈ SYNOPSIS πΈ
void idpf_add_queue_stats (u64 **data , const void *q , enum
virtchnl2_queue_type type );
π¦ ARGUMENTS π¦
dataβ the ethtool stats buffer, aka where the goodies go πqβ the queue you're copying from, the main character frtypeβ what kind of queue it is π
π§ DESCRIPTION π§
okay so here's the vibe check: queue statistics must be copied while they're protected by u64_stats_fetch_begin, which is literally why we can't just directly use idpf_add_ethtool_stats. no cap. π
it assumes that the queue stats are defined in idpf_gstrings_queue_stats β that's just the assignment, we don't question it π
if the queue pointer is null, it zeroes out the queue stat values and updates the data pointer. slay. otherwise it safely copies the stats from the queue into the supplied buffer and updates the data pointer when it's finished β¨
this function expects to be called while under rcu_read_lock. not optional, bestie β that's the whole rule π
π SEE ALSO π
the kernel file ./drivers/net/ethernet/intel/idpf/idpf_ethtool.c plus the whole friend group:
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_one_ethtool_stat(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, periodt π
this one lives in ./drivers/net/ethernet/intel/idpf, dated October 2026 β so like, future icon behavior πβ¨ bye bestie, go copy those stats safely π¦π
π¦ 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