am65_cpts_prep_tx_timestamp(9)
π 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:
- She checks whether the packet can actually be timestamped in the first place β vibe check on the packet, basically. π
- If it passes, she fills in the internal cpts data in
skb-cbβ that's the skb control buffer, her little hideaway for bookkeeping. π - Then she marks the packet as
SKBTX_IN_PROGRESSso 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
- 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