idpf_ptp_create_clock(9)
πΈ idpf_ptp_create_clock β Kernel API Manual πΈ
okay so bestie, welcome to the idpf_ptp_create_clock(9) page π
this one lives in the 9 section of the Kernel API Manual, and it's short, sweet, and kind of a big deal if you're into precision time stuff β¨
β¨ NAME β¨
idpf_ptp_create_clock β literally just creating a PTP clock device for userspace π°οΈπ
π¦ SYNOPSIS π¦
int idpf_ptp_create_clock (const struct idpf_adapter *adapter );
that's the whole signature, no cap π«Ά
π ARGUMENTS π
adapterβ the driver-specific private structure πΈ this is your lil bundle of everything the driver knows about itself, and you're handing it over so the function can do its thing.
π DESCRIPTION π
so what does it do?? this function creates a new PTP clock device π°οΈβ¨ that's it, that's the plot. it's giving "make the clock, hand it to userspace, slay." the way that a PTP clock device gets born right here and userspace gets to see it β iconic behavior honestly π
π₯ RETURN π₯
0on success π-errnootherwise π (so like, a negative errno value β that's your "something went sideways" signal, go checkerrnobestie)
π SEE ALSO π
okay this list is LONG, grab a snack π but fr fr these are all the sibling functions in the same little PTP family, and you're gonna want to know them:
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_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_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 the source file itself, for when you gotta read the real thing π:
- Kernel file
./drivers/net/ethernet/intel/idpf/idpf_ptp.c
pro tip from your girl:man 9 idpf_ptp_initandman 9 idpf_ptp_releaseare like the bookends of this whole PTP saga β start there if you're lost π§
β and that's the page, bestie! this one came out of ./drivers/net/ethernet/intel/idpf, dated October 2026, and it's the idpf_ptp_create_clock(9) entry of the Kernel API Manual β go forth and create clocks ππ¦π
π¦ 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