STRUCT VIRTCHNL2_PTP_GET_DEV_CLK_TIME(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct virtchnl2_ptp_get_dev_clk_time(9) πŸ’–

okay so real quick β€” this is a page from the Kernel API Manual bestie, and it's about one (1) tiny little struct that is associated with message VIRTCHNL2_OP_PTP_GET_DEV_CLK_TIME. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

struct virtchnl2_ptp_get_dev_clk_time β€” it's the struct that's associated with the message VIRTCHNL2_OP_PTP_GET_DEV_CLK_TIME. yes that's literally it, she's a package deal with that op πŸ’…


🌸 SYNOPSIS 🌸

struct virtchnl2_ptp_get_dev_clk_time {
    __le64 dev_time_ns;
    u8 pad[8];
 };

look at her. two fields. tiny. perfect. no notes 😭✨


πŸŽ€ Members πŸŽ€

  • dev_time_ns β€” the device clock time value, and it's in nanoseconds. that's the actual number you came here for, bestie ⏱️
  • pad β€” literally just padding for future extensions. she's a u8 array of 8 and her job is to take up space so future stuff can move in later. placeholder queen πŸ‘‘

πŸ¦‹ Description πŸ¦‹

so here's the lore: the PF/VF sends this message to receive the time from the main timer. that's it. that's the whole plot. PF or VF slides this in, and the main timer hands over the time. iconic behavior fr fr 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

the whole extended universe, no cap β€” kernel file ./include/linux/net/intel/virtchnl2.h plus every one of these besties:

  • enum virtchnl2_vport_type(9)
  • enum virtchnl2_queue_model(9)
  • enum virtchnl2_action_types(9)
  • enum virtchnl2_txq_sched_mode(9)
  • enum virtchnl2_rxq_flags(9)
  • enum virtchnl2_mac_addr_type(9)
  • struct virtchnl2_edt_caps(9)
  • struct virtchnl2_version_info(9)
  • struct virtchnl2_get_capabilities(9)
  • struct virtchnl2_queue_reg_chunk(9)
  • struct virtchnl2_queue_reg_chunks(9)
  • enum virtchnl2_vport_flags(9)
  • struct virtchnl2_create_vport(9)
  • struct virtchnl2_vport(9)
  • struct virtchnl2_txq_info(9)
  • struct virtchnl2_config_tx_queues(9)
  • struct virtchnl2_rxq_info(9)
  • struct virtchnl2_config_rx_queues(9)
  • struct virtchnl2_add_queues(9)
  • struct virtchnl2_vector_chunk(9)
  • struct virtchnl2_vector_chunks(9)
  • struct virtchnl2_alloc_vectors(9)
  • struct virtchnl2_rss_lut(9)
  • struct virtchnl2_rss_hash(9)
  • struct virtchnl2_sriov_vfs_info(9)
  • struct virtchnl2_ptype(9)
  • struct virtchnl2_get_ptype_info(9)
  • struct virtchnl2_vport_stats(9)
  • struct virtchnl2_event(9)
  • struct virtchnl2_rss_key(9)
  • struct virtchnl2_queue_chunk(9)
  • struct virtchnl2_del_ena_dis_queues(9)
  • struct virtchnl2_queue_vector(9)
  • struct virtchnl2_queue_vector_maps(9)
  • struct virtchnl2_loopback(9)
  • struct virtchnl2_mac_addr_list(9)
  • struct virtchnl2_promisc_info(9)
  • enum virtchnl2_ptp_caps(9)
  • struct virtchnl2_ptp_clk_reg_offsets(9)
  • struct virtchnl2_ptp_cross_time_reg_offsets(9)
  • struct virtchnl2_ptp_clk_adj_reg_offsets(9)
  • struct virtchnl2_ptp_tx_tstamp_latch_caps(9)
  • struct virtchnl2_ptp_get_vport_tx_tstamp_caps(9)
  • struct virtchnl2_ptp_get_caps(9)
  • struct virtchnl2_ptp_tx_tstamp_latch(9)
  • struct virtchnl2_ptp_get_vport_tx_tstamp_latches(9)
  • struct virtchnl2_ptp_get_cross_time(9)
  • struct virtchnl2_ptp_set_dev_clk_time(9)
  • struct virtchnl2_ptp_adj_dev_clk_fine(9)
  • struct virtchnl2_ptp_adj_dev_clk_time(9)
  • struct virtchnl2_mem_region(9)
  • struct virtchnl2_get_lan_memory_regions(9)
  • struct virtchnl2_proto_hdr(9)
  • struct virtchnl2_proto_hdrs(9)
  • struct virtchnl2_rule_action(9)
  • struct virtchnl2_rule_action_set(9)
  • struct virtchnl2_flow_rule(9)
  • struct virtchnl2_flow_rule_info(9)
  • struct virtchnl2_flow_rule_add_del(9)

like I said. extended universe. read them all or don't, but they're all here πŸ“πŸ’€


mwah that's the page!! she lives in ./include/linux/net/intel and she was dated October 2026 β€” so go read the header, tell the main timer I said hi, and stan a tiny struct today πŸŒŸπŸ’œπŸ§š

πŸ“¦ where this page comes from