STRUCT KERNEL_ETHTOOL_TS_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct kernel_ethtool_ts_info(9) 🌸

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for struct kernel_ethtool_ts_info, which is literally just the kernel's own little copy of struct ethtool_ts_info. no cap. it's giving "same energy, different address space" πŸ’…


πŸŽ€ NAME πŸŽ€

struct kernel_ethtool_ts_info β€” kernel copy of struct ethtool_ts_info

like. it's the kernel-side version of that struct. that's the whole vibe πŸ¦‹


✨ SYNOPSIS ✨

struct kernel_ethtool_ts_info {
    u32 cmd;
    u32 so_timestamping;
    int phc_index;
    enum hwtstamp_provider_qualifier phc_qualifier;
    enum hwtstamp_source phc_source;
    int phc_phyindex;
    u32 tx_types;
    u32 rx_filters;
};

that's the whole struct, laid out, iconic, no crumbs πŸ“


πŸ’– Members πŸ’–

okay bestie, field by field, let's go πŸ”₯

  • cmd β€” the command number, and it is literally ETHTOOL_GET_TS_INFO. that's it. that's the field πŸ‘‘
  • so_timestamping β€” a bit mask of the sum of the supported SO_TIMESTAMPING flags. yes, the sum. as a bit mask. slay 🌈
  • phc_index β€” device index of the associated PHC, or -1 if there is none. so if you see -1, that's the "no PHC bestie" signal 😭
  • phc_qualifier β€” qualifier of the associated PHC. type is enum hwtstamp_provider_qualifier. it's the qualifier. very demure, very mindful πŸ’œ
  • phc_source β€” source device of the associated PHC. type is enum hwtstamp_source ✨
  • phc_phyindex β€” index of the PHY device source of the associated PHC. not to be confused with phc_index up there, they are two different fields, i don't make the rules 🫢
  • tx_types β€” a bit mask of the supported hwtstamp_tx_types enumeration values πŸŽ€
  • rx_filters β€” a bit mask of the supported hwtstamp_rx_filters enumeration values πŸ¦‹

πŸ‘€ SEE ALSO πŸ‘€

the main character reference: Kernel file ./include/linux/ethtool.h πŸ’…

and now the group chat β€” every single one of these showed up to the party, and we are NOT leaving anyone out:

enum ethtool_phys_id_state(9), struct kernel_ethtool_ringparam(9), enum ethtool_supported_ring_param(9), ethtool_rxfh_indir_default(9), struct ethtool_rxfh_context(9), ethtool_link_ksettings_zero_link_mode(9), ethtool_link_ksettings_add_link_mode(9), ethtool_link_ksettings_del_link_mode(9), ethtool_link_ksettings_test_link_mode(9), ethtool_intersect_link_masks(9), struct ethtool_phy_stats(9), struct ethtool_pause_stats(9), struct ethtool_fec_hist_range(9), struct ethtool_fec_stats(9), struct ethtool_rmon_hist_range(9), struct ethtool_rmon_stats(9), struct ethtool_ts_stats(9), struct ethtool_module_eeprom(9), struct ethtool_module_power_mode_params(9), struct ethtool_mm_state(9), struct ethtool_mm_cfg(9), struct ethtool_mm_stats(9), struct ethtool_mmsv_ops(9), struct ethtool_mmsv(9), struct ethtool_rxfh_param(9), struct ethtool_rxfh_fields(9), struct ethtool_ops(9), struct ethtool_netdev_state(9), struct ethtool_phy_ops(9), ethtool_set_ethtool_phy_ops(9), ethtool_params_from_link_mode(9), ethtool_get_phc_vclocks(9), ethtool_mm_frag_size_add_to_min(9), ethtool_mm_frag_size_min_to_add(9), ethtool_get_ts_info_by_layer(9), ethtool_sprintf(9), ethtool_puts(9), ethtool_cpy(9)


🫢 friendly reminder bestie: phc_index being -1 means there's no associated PHC. don't panic, it's not a bug, it's just the documented value. periodt.

and that's the page!! πŸ’– brought to you by the fine folks in ./include/linux (that's the source, mwah πŸ’‹), dated October 2026 ⭐ β€” go read the other ethtool pages, they're all in the group chat above, ily, bye 🧚

πŸ“¦ where this page comes from