idpf_ptp_get_crosststamp(9)
π
idpf_ptp_get_crosststamp β bestie, let's grab a cross timestamp β¨
okay so this is a page from the Kernel API Manual, and it's all about idpf_ptp_get_crosststamp(9) β the little function that snatches a device cross timestamp for you. no cap, it's iconic.
πΈ NAME πΈ
idpf_ptp_get_crosststamp β capture a device cross timestamp π
β¨ SYNOPSIS β¨
int idpf_ptp_get_crosststamp (struct ptp_clock_info *info , struct
system_device_crosststamp *cts );
like, that's the whole vibe. two args, one int coming back at you π«Ά
π¦ ARGUMENTS π¦
infoβ the driver's PTP info structure. literally the structure, the main character of this whole thing πctsβ the memory to fill the cross timestamp info. yes bestie, you're passing in the memory and it gets filled π
π DESCRIPTION π
So what does it actually do? It captures a cross timestamp between the system time and the device PTP hardware clock. that's it, that's the whole slay. two clocks, one timestamp, no drama β
π₯ RETURN π₯
- cross timestamp value on success β ate, no crumbs π
-errnoon failure β not the vibe, but at least it tells you why π
π SEE ALSO π
fr fr, go read the source, it's right here:
- Kernel file
./drivers/net/ethernet/intel/idpf/idpf_ptp.c
and the whole friend group π:
idpf_ptp_get_access(9)idpf_ptp_get_features_access(9)idpf_ptp_enable_shtime(9)idpf_ptp_read_src_clk_reg_direct(9)idpf_ptp_read_src_clk_reg_mailbox(9)idpf_ptp_read_src_clk_reg(9)idpf_ptp_get_sync_device_time_direct(9)idpf_ptp_get_sync_device_time_mailbox(9)idpf_ptp_get_sync_device_time(9)idpf_ptp_gettimex64(9)idpf_ptp_update_phctime_rxq_grp(9)idpf_ptp_update_cached_phctime(9)idpf_ptp_settime64(9)idpf_ptp_adjtime_nonatomic(9)idpf_ptp_adjtime(9)idpf_ptp_adjfine(9)idpf_ptp_verify_pin(9)idpf_ptp_gpio_enable(9)idpf_ptp_tstamp_extend_32b_to_64b(9)idpf_ptp_extend_ts(9)idpf_ptp_request_ts(9)idpf_ptp_set_rx_tstamp(9)idpf_ptp_set_timestamp_mode(9)idpf_tstamp_task(9)idpf_ptp_do_aux_work(9)idpf_ptp_set_caps(9)idpf_ptp_create_clock(9)idpf_ptp_release_vport_tstamp(9)idpf_ptp_release_tstamp(9)idpf_ptp_get_txq_tstamp_capability(9)idpf_ptp_init(9)idpf_ptp_release(9)
π tiny vibe check: this page lives under ./drivers/net/ethernet/intel/idpf β iykyk π«
k bye bestie, go timestamp something πβ¨π¦ periodt π
β with love, from the Kernel API Manual crew, source ./drivers/net/ethernet/intel/idpf, October 2026 edition π
π¦ 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