idpf_ptp_settime64(9)
π idpf_ptp_settime64(9) β like, the Kernel API Manual page you didn't know you needed π
okay so bestie, welcome to the glow-up of idpf_ptp_settime64, straight out of the Kernel API Manual. she's a little function, she sets a clock, and honestly? she ate. β¨ let's get into it.
πΈ NAME πΈ
idpf_ptp_settime64 β literally just Set the time of the clock β°π
β¨ SYNOPSIS β¨
int idpf_ptp_settime64 (struct ptp_clock_info *info , const struct
timespec64 *ts );
yes she returns an int, yes the spacing is exactly like that, no we are not touching it π«Ά
π¦ ARGUMENTS π¦
infoβ the driver's PTP info structure. like, her whole personality lives in here, iykyk πtsβ thetimespec64structure that holds the new time value. this is the main character of the operation, no cap π
π DESCRIPTION π
so what she does is: set the device clock to the user input value. that's it, that's the vibe. π°οΈπ
and here's the cute little detail β the conversion from timespec to ns happens in the write function, not here. so don't be out here doing math in this function, bestie, it's giving "not my job" and honestly? respect πβ¨
π₯ RETURN π₯
0on success π-errnootherwise π (standard kernel behaviour, she's not special and that's fine)
π SEE ALSO π
kernel file: ./drivers/net/ethernet/intel/idpf/idpf_ptp.c π
and the whole friend group, because she does not exist in a vacuum:
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_gettimex64(9), idpf_ptp_update_phctime_rxq_grp(9), idpf_ptp_update_cached_phctime(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 π
this lil number lives in ./drivers/net/ethernet/intel/idpf and it was dated October 2026 β so yeah, she's from the future, obviously. 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