__wx_ptp_detach_tx_skb(9)
π NAME π
ok so like, __wx_ptp_detach_tx_skb β it detaches the skb that's tracking the Tx timestamp request π that's the whole vibe, that's the mission, no cap
(this is a page from the Kernel API Manual, bestie β welcome to the kernel girlies club π)
β¨ SYNOPSIS β¨
struct sk_buff * __wx_ptp_detach_tx_skb (struct wx *wx );
πΈ ARGUMENTS πΈ
wxβ the private board structure π like, the board's whole personality in one struct, yk?
π¦ DESCRIPTION π¦
okay so bestie, here's the tea β β this function detaches the skb of the outstanding request, and then it releases the in-progress bit. why? so that a new request can be submitted, periodt β¨ it's literally just clearing the way for the next one.
and here's the important part, ngl: this performs no register access. like, zero. none. not a single poke at the hardware π
so if you're a caller and you need a timestamp that the hardware may have left latched, you gotta unlatch it yourself β and you gotta do it while the device is known to be alive. that's on you, not on this function, iykyk π
and speaking of which β wx_ptp_quiesce runs during PCIe error recovery, where MMIO is not reliable, so it deliberately skips the unlatch. not a bug, it's a choice, and honestly? iconic behaviour π§
π₯ CONTEXT π₯
expects wx->ptp_tx_lock to be held by the caller π«Ά like, hold the lock, bestie. that's the whole thing. that's the vibe check.
β RETURN β
it returns the detached skb π or NULL if no request was outstanding β so like, if nothing was happening, you get nothing back, which is fair fr fr.
and heads up: the caller owns the returned reference and must release it once the lock is dropped π don't just walk away with it, that's not the move.
π SEE ALSO π
the kernel file lives at ./drivers/net/ethernet/wangxun/libwx/wx_ptp.c β go read it, it's giving main character energy π
and the whole friend group, in no particular order:
wx_ptp_clear_tx_timestamp(9)wx_ptp_convert_to_hwtstamp(9)wx_ptp_tx_hwtstamp_work(9)wx_ptp_overflow_check(9)wx_ptp_rx_hang(9)wx_ptp_tx_hang(9)wx_ptp_reset_cyclecounter(9)wx_ptp_suspend(9)wx_ptp_stop(9)wx_ptp_rx_hwtstamp(9)
π and that's the page, bestie! from./drivers/net/ethernet/wangxun..., dated October 2026, and yes it's still__wx_ptp_detach_tx_skb(9)β slay πΈβ¨π¦π
π¦ 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