idpf_ptp_get_tstamp_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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