STRUCT VIRTCHNL_PHC_TIME(9)
β¨ 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 forrsvdβ 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.hstructvirtchnl_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
- 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