am65_cpts_prep_tx_timestamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– am65_cpts_prep_tx_timestamp β€” the Kernel API Manual glow-up πŸ’–

okay bestie, so this one lives in the Kernel API Manual, and it's giving "tiny function, huge responsibilities" energy. It's am65_cpts_prep_tx_timestamp, and no cap, it's the little pre-flight check your TX packet goes through before the hardware gets its timestamp on. ✨


🌸 NAME 🌸

am65_cpts_prep_tx_timestamp β€” checks a tx packet and gets it all prepped for timestamping. That's literally the whole job description, and she does it flawlessly. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void am65_cpts_prep_tx_timestamp (struct am65_cpts *cpts , unsigned int
port_id , struct sk_buff *skb );

Returns nothing (it's void, she's humble like that) β€” she just does the work and ghosts. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • cpts β€” your cpts handle. The main character of this whole saga, iykyk. 🫢
  • port_id β€” the port the skb is gonna be sent out on. Gotta know which door she's exiting through. πŸšͺ
  • skb β€” the packet itself. The whole reason we're here. πŸ“¦

✨ DESCRIPTION ✨

okay so listen β€” this function is supposed to be called from .xmit, that's her designated hangout spot, no negotiating. 🎯

When she runs, she does a whole little routine:

  1. She checks whether the packet can actually be timestamped in the first place β€” vibe check on the packet, basically. πŸ™ˆ
  2. If it passes, she fills in the internal cpts data in skb-cb β€” that's the skb control buffer, her little hideaway for bookkeeping. πŸ“
  3. Then she marks the packet as SKBTX_IN_PROGRESS so everyone downstream knows the timestamp situation is handled and in flight. πŸ”₯
ngl she's doing three things at once and making it look effortless β€” that's main character energy, periodt. πŸ’œ

🌈 SEE ALSO 🌈

  • The kernel file you'll wanna peek at: ./drivers/net/ethernet/ti/am65-cpts.c β€” go read her home base, bestie, it's all there. πŸ“–
  • am65_cpts_tx_timestamp(9) β€” her sibling, the one who actually handles the timestamp part. Family business fr fr. πŸ‘―

and that's the whole page, bestie β€” no filler, all facts, ate and left no crumbs. 🧚

signed, sealed, delivered from ./drivers/net/ethernet/ti, dated October 2026, tagged am65_cpts_prep_tx_timestamp(9) β€” mwah, slay, bye! πŸ’‹πŸ’–

πŸ“¦ where this page comes from