idpf_ptp_get_tstamp_value(9)
π idpf_ptp_get_tstamp_value β the Kernel API Manual glow-up β¨
okay so bestie, grab your iced coffee π because we're diving into idpf_ptp_get_tstamp_value(9), and honestly? it's giving tiny-but-iconic. it's a kernel API manual page, it lives with the idpf crew, and it has exactly one job: get the Tx timestamp value and hand it back to the skb. no cap, that's the whole personality. π
β¨ NAME β¨
idpf_ptp_get_tstamp_value β Get the Tx timestamp value and provide it back to the skb. π
π¦ SYNOPSIS π¦
int idpf_ptp_get_tstamp_value (struct idpf_vport *vport , struct
virtchnl2_ptp_tx_tstamp_latch *tstamp_latch , struct idpf_ptp_tx_tstamp
*ptp_tx_tstamp );
like, look at her. three params, one int return, zero drama. πΈ
π ARGUMENTS π
vportβ the Virtual port structure. she's the main character here, the vport we're doing all this for π«Άtstamp_latchβ the Tx timestamp latch structure, and it's already been fulfilled by the Control Plane. so we're not setting it up, we're just reading the tea leaves it left us ββ¨ptp_tx_tstampβ the Tx timestamp latch that gets added to the free list. yes bestie, she goes back into the pool π
π₯ DESCRIPTION π₯
so here's the vibe check: we read the value of the Tx timestamp for a given latch that we received from the Control Plane. then we extend it to 64 bit (glow-up moment β) and provide it back to the skb. that's it, that's the function. short, sweet, and it ate. π
π RETURN π
0 on success, -errno otherwise. classic. no surprises, no plot twists, just the numbers you expect π
π SEE ALSO π
kernel file, for the curious girlies who want to read the source: ./drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.c π
and the whole friend group, fr fr:
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_adj_dev_clk_fine(9)idpf_ptp_get_vport_tstamps_caps(9)idpf_ptp_update_tstamp_tracker(9)idpf_ptp_get_tx_tstamp_async_handler(9)idpf_ptp_get_tx_tstamp(9)
okay so quick reminder bestie: this one only reads the latch and hands the value back to the skb β the latch itself was fulfilled by the Control Plane, and ptp_tx_tstamp goes onto the free list. don't get it twisted π
that's the whole page, iykyk π§ and for the sign-off: this lil beauty comes from ./drivers/net/ethernet/intel/idpf, dated October 2026, and she's filed under idpf_ptp_get_tstamp_value(9). periodt. π
π
π¦ 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