STRUCT VIORTC_PTP_CROSS_CTX(9)
π struct viortc_ptp_cross_ctx(9) π
okay bestie, welcome to the Kernel API Manual β this one's a little struct page and she is carrying the whole crosststamp situation on her shoulders, no cap β¨
πΈ NAME πΈ
struct viortc_ptp_cross_ctx β the context for get_device_system_crosststamp(), periodt π
β¨ SYNOPSIS β¨
struct viortc_ptp_cross_ctx {
ktime_t device_time;
struct system_counterval_t system_counterval;
};
like, that's her. two members. tiny struct, main character energy π
π Members π
device_timeβ the device clock reading π°οΈ literally the moment, from the device's own little perspectivesystem_countervalβ the HW counter value atdevice_timeβ‘ (yes, exactly at that time, they're a matched set, iykyk)
π¦ Description π¦
so what she does: she provides the already obtained crosststamp to get_device_system_crosststamp π«Ά
that's it, that's the whole vibe. she's the little envelope π that hands over a crosststamp you already grabbed β nothing is fetched here, the work is done, she's just the delivery girl and she slayed it π
π SEE ALSO π
- Kernel file
./drivers/virtio/virtio_rtc_ptp.cπ struct viortc_ptp_clock(9)viortc_ptp_get_time_fn(9)viortc_ptp_do_xtstamp(9)viortc_ptp_getcrosststamp(9)viortc_ptp_unregister(9)viortc_ptp_get_cross_cap(9)viortc_ptp_register(9)
go read the whole friend group, they're all iconic ππ₯
ngl this page is short but she ate and left no crumbs π mwah π
okay that's the page!! it lives in ./drivers/virtio and it's dated October 2026 β see u then bestie, mwah πππ§ββοΈ
π¦ 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