__wx_ptp_detach_tx_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


πŸ’– 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