idpf_ptp_gettimex64(9)
π idpf_ptp_gettimex64(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for idpf_ptp_gettimex64, and it is literally the function that just... gets the time of the clock π°οΈβ¨ Like that's the whole vibe. No cap.
β¨ NAME β¨
idpf_ptp_gettimex64 β Get the time of the clock π
π¦ SYNOPSIS π¦
int idpf_ptp_gettimex64 (struct ptp_clock_info *info , struct timespec64
*ts , struct ptp_system_timestamp *sts );
πΈ ARGUMENTS πΈ
infoβ the driver's PTP info structure. this is the main character of the argument list ngl, it's giving "i know where everything is" energy πtsβ thetimespec64structure that's gonna hold the current time value. it's the container, it's the little box you put the clock reading in πstsβ Optional parameter for holding a pair of system timestamps from the system clock. Will be ignored ifNULLis given. so like, if you passNULLshe simply does not care, she ignores it, icon behaviour honestly π
π RETURN π
on success you get the device clock value in ns, after converting it into a timespec struct π
and otherwise? -errno. that's it, that's the deal β -errno means something went sideways, and the errno will tell you what π₯
π SEE ALSO π
the kernel file lives right here, bestie:
- Kernel file
./drivers/net/ethernet/intel/idpf/idpf_ptp.c
and then the whole friend group, in this exact order, no skipping anyone, we love a full roster π«Ά:
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_get_crosststamp(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)
and that's the whole page, bestie, you ate that π
β¨ this lil drop came straight out of ./drivers/net/ethernet/intel/idpf and it's dated October 2026 β so like, future vibes fr fr. bye ily ππ¦π
π¦ 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