STRUCT VIRTCHNL2_PTP_CLK_REG_OFFSETS(9)
π struct virtchnl2_ptp_clk_reg_offsets β a Kernel API Manual moment β¨
ok so bestie, welcome to the Kernel API Manual, and today's main character is struct virtchnl2_ptp_clk_reg_offsets. yes it's a long name. no we're not scared of it. it's literally just a little bundle of offsets for the device clock and PHY clock registers, and honestly once you see it laid out you'll be like "oh. that's it? slay." π
πΈ NAME πΈ
struct virtchnl2_ptp_clk_reg_offsets β offsets of the device and PHY clocks registers. that's the whole vibe. π
β¨ SYNOPSIS β¨
struct virtchnl2_ptp_clk_reg_offsets {
__le32 dev_clk_ns_l;
__le32 dev_clk_ns_h;
__le32 phy_clk_ns_l;
__le32 phy_clk_ns_h;
__le32 cmd_sync_trigger;
u8 pad[4];
};
look at her. six lines, one job. __le32 everywhere because endianness matters and we respect it. π«Ά
π Members π
here's the vibe check on every single field, no skips, no cap:
dev_clk_ns_lβ the device clock low register offset. lowkey the first half of the device clock situation. πdev_clk_ns_hβ the device clock high register offset. the other half. together they're giving full picture energy. β¨phy_clk_ns_lβ the PHY clock low register offset. yes PHY gets its own clock too, she's not sharing. πΈphy_clk_ns_hβ the PHY clock high register offset. high half, high key iconic. π₯cmd_sync_triggerβ the command sync trigger register offset. the lil "go bestie" button of the whole struct. πpadβ padding for future extensions. it's not empty, it's reserved. main character energy for au8[4]. π
ngl the pad field is literally just future-proofing β it exists so future extensions have somewhere to live. respect the hustle. π
π¦ SEE ALSO π¦
ok this is the part where the whole friend group shows up. starting with the kernel file itself:
Kernel file ./include/linux/net/intel/virtchnl2.h
and now the entire guest list, bestie, hold on tight:
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_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_dev_clk_time(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)
that's the whole crew fr fr, nobody got left off the list. π«Άπ
and that's the page!! π
this lil manpage lives in ./include/linux/net/intel, dated October 2026, and it's filed under struct virtc..._reg_offsets(9) in the Kernel API Manual β go forth and read those clock register offsets, bestie, you've got this πβ¨π¦
π¦ 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