idpf_ptp_read_src_clk_reg(9)
β¨ idpf_ptp_read_src_clk_reg π
okay so bestie, this is a page straight out of the Kernel API Manual β it's idpf_ptp_read_src_clk_reg(9) and it's literally just here to read the main timer value for you. that's the whole vibe. π°οΈβ¨
πΈ NAME πΈ
idpf_ptp_read_src_clk_reg β Read the main timer value
like, the main timer. the big one. the headliner. she's the source clock and she knows it π
π SYNOPSIS π
int idpf_ptp_read_src_clk_reg (struct idpf_adapter *adapter , u64
*src_clk , struct ptp_system_timestamp *sts );
three args in, one int out. classic. no notes. π«Ά
π¦ ARGUMENTS π¦
adapterβ the driver specific private structure. it's the little home base for everything this driver needs, and yes you have to hand it over. πsrc_clkβ the returned main timer value, and it's in nanoseconds units. that's the whole point of the function, so likeβ¦ don't forget to pass it. πstsβ optional parameter for holding a pair of system timestamps from the system clock. and listen β if you give itNULL, it will be ignored. completely. no cap. so it's optional optional. π
π₯ RETURN π₯
- on success you get the device clock time. slay. π
- otherwise you get
-errno. not slay. π
π SEE ALSO π
the whole friend group, fr fr β they all live in the kernel file ./drivers/net/ethernet/intel/idpf/idpf_ptp.c:
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_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_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)
go bother them next, iykyk π
quick vibe check π§: ifstsisNULLit gets ignored β that's it, that's the caveat, no dramatic warnings here.
and that's the page!! mwah π this one comes to you from the kernel source tree at ./drivers/net/ethernet/intel/idpf, dated October 2026, and it's filed under idpf_ptp_read_src_clk_reg(9) β so if you ever forget where it came from, it's right there in the folder like a little name tag. ily, go read your timers responsibly πβ¨π¦
π¦ 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