idpf_ptp_adj_dev_clk_fine(9)
π idpf_ptp_adj_dev_clk_fine β the kernel API manual, but make it make sense
okay so bestie, welcome to the idpf_ptp_adj_dev_clk_fine(9) page β¨ this is one of those kernel API manual moments and honestly it's giving "small function, big responsibilities." grab a lil snack π and let's get into it.
πΈ NAME πΈ
idpf_ptp_adj_dev_clk_fine β the one that sends the virtchnl adj time message π
π¦ SYNOPSIS π¦
int idpf_ptp_adj_dev_clk_fine (struct idpf_adapter *adapter , u64 incval
);
like, that's the whole vibe. one function, two args, returns an int. no cap. π
β¨ ARGUMENTS β¨
adapterβ the driver specific private structure π«Ά this is your little home base, the driver's own private struct, and you gotta pass it in.incvalβ the source timer increment value per clock cycle β±οΈ literally the value per clock cycle that the source timer increments by. it's au64, so it's a big girl number.
π DESCRIPTION π
So what does this icon actually do? It sends a virtchnl adj fine message to adjust the frequency of the clock by incval. that's it, that's the whole job π₯ remember: adjust the frequency of the clock, by incval. not the time, not the offset, the frequency. periodt.
The virtchnl part is the message it's sending, and it's specifically the adj fine one β the fine-grained one π
π RETURN π
0on success π slay.-errnootherwise π so any negative errno value means something went sideways and you should go read the error. not me finding out the hard way π
π SEE ALSO π
okay this is the little friend group, all the PTP besties π§ and yes every single one is listed, i'm not skipping anyone:
- Kernel file
./drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.cβ that's where this lives, go look at the source if you want the real tea β idpf_ptp_get_caps(9)idpf_ptp_get_dev_clk_time(9)idpf_ptp_get_cross_time(9)idpf_ptp_set_dev_clk_time(9)idpf_ptp_adj_dev_clk_time(9)idpf_ptp_get_vport_tstamps_caps(9)idpf_ptp_update_tstamp_tracker(9)idpf_ptp_get_tstamp_value(9)idpf_ptp_get_tx_tstamp_async_handler(9)idpf_ptp_get_tx_tstamp(9)
π lowkey important reminder bestie:incvaladjusts the clock's frequency, and the return is0on success or-errnootherwise. that's the whole contract, no guessing, iykyk.
and that's the page!! π this lil writeup lives under ./drivers/net/ethernet/intel/idpf, and the version/date stamp on the original was October 2026, with the header/footer naming idpf_ptp_adj_dev_clk_fine(9) β so yeah, October 2026 idpf hive, we salute you π«Άβ¨ go adjust some clocks, you absolute main character. π
π
π¦ 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