idpf_ptp_init(9)
β¨ idpf_ptp_init(9) β¨
okay so bestie, we're in the Kernel API Manual today and the main character is idpf_ptp_init π
this one's all about getting your PTP hardware clock situation set up β let's go π«Ά
πΈ SYNOPSIS πΈ
int idpf_ptp_init (struct idpf_adapter *adapter );
π ARGUMENTS π
adapterβ the driver's own lil private structure, iykyk π
π¦ DESCRIPTION π¦
so what it does is set up the device so it can interact with the PTP hardware clock for all functions, no cap β¨ and like, the function is gonna allocate and register a ptp_clock</> with the PTP_1588_CLOCK infrastructure β periodt, that's the whole vibe π
π RETURN π
0on success π-errnootherwise π
π₯ SEE ALSO π₯
kernel file ./drivers/net/ethernet/intel/idpf/idpf_ptp.c π plus the whole friend group:
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_create_clock(9)idpf_ptp_release_vport_tstamp(9),idpf_ptp_release_tstamp(9)idpf_ptp_get_txq_tstamp_capability(9)idpf_ptp_release(9)
and that's the whole page, bestie π this gorgeousness lives in ./drivers/net/ethernet/intel/idpf, dated October 2026 β go forth and initialize those clocks, you absolute icon ππ
π¦ 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