idpf_ptp_settime64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the timespec64 structure 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 πŸ”₯

  • 0 on success 🌟
  • -errno otherwise 😭 (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