STRUCT VIRTCHNL_PHC_TIME(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct virtchnl_phc_time ✨

okay bestie so we're in the Kernel API Manual today and the star of the show is struct virtchnl_phc_time β€” it's literally Contains the 64bits of PHC clock time in ns. no cap, that's the whole NAME, that's the vibe πŸ’…


🌸 SYNOPSIS 🌸

struct virtchnl_phc_time {
    u64 time;
    u8 rsvd[8];
 };

like, look at her. tiny struct, big main character energy πŸŽ€


πŸ¦‹ MEMBERS πŸ¦‹

  • time β€” the PHC time, in nanoseconds ⏱️ that's the actual number you came here for
  • rsvd β€” Reserved for future extension πŸ‘€ i.e. don't touch it, it's saving a seat for future content

πŸ’– DESCRIPTION πŸ’–

So this struct shows up when you get VIRTCHNL_OP_1588_PTP_GET_TIME back β€” it Contains the 64bits of PHC clock time in nanoseconds. πŸ•°οΈβœ¨

And here's the tea: you can send VIRTCHNL_OP_1588_PTP_GET_TIME to request the current time of the PHC. This op is available in case direct access via the PHC registers is not available β€” like, it's the backup bestie when the registers won't answer your texts 😭🫢


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/linux/net/intel/virtchnl.h struct virtchnl_ptp_caps(9), virtchnl_vc_validate_vf_msg(9) β€” go read those next, iykyk πŸ”₯

fr fr if you're gonna use this, remember rsvd is reserved for future extension β€” not me watching you write into it πŸ™ˆ

okay that's the whole page, mwah πŸ’‹ β€” this one lives under ./include/linux/net/intel, dated October 2026, and it's struct virtchnl_phc_time(9) if you gotta cite it. slay, go read the kernel πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from