wx_ptp_tx_hwtstamp_work(9)
π wx_ptp_tx_hwtstamp_work(9) β the Kernel API Manual glow-up π
okay bestie, so this is a page from the Kernel API Manual (kernel docs section 9, driver/kernel API vibes β¨) and it's all about wx_ptp_tx_hwtstamp_work β literally the little worker that checks whether a Tx time stamp is still pending. no cap, it's giving "did the hardware finish yet" energy π₯
β¨ NAME β¨
wx_ptp_tx_hwtstamp_work β check for a pending Tx time stamp π
π¦ SYNOPSIS π¦
int wx_ptp_tx_hwtstamp_work (struct wx *wx );
πΈ ARGUMENTS πΈ
wxβ the private board struct π«Ά like, the board's own little private stash of info, iykyk
π DESCRIPTION π
okay so here's the whole vibe π: if a Tx timestamp request is outstanding and the hardware has latched a valid value, we convert it into the timecounter ns value, then store that result into the shhwtstamps structure β which is passed up the network stack π€β¨. that's literally it, that's the whole job. main character energy fr fr.
like, imagine the hardware being like "bestie I got a timestamp for u π " and this function being the one to translate it into something the network stack can actually read. iconic.
β RETURN β
0β when there is nothing left to poll for π (we're done here, slay)-1β when the timestamp is not available yet, and the caller should poll again π (not yet bestie, come back later)
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/wangxun/libwx/wx_ptp.cπ __wx_ptp_detach_tx_skb(9)wx_ptp_clear_tx_timestamp(9)wx_ptp_convert_to_hwtstamp(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)
π the whole friend group of wx_ptp_* functions is right there if u wanna go down the rabbit hole. go off bestie π§
and that's the page! πΈ source/version vibes come from ./drivers/net/ethernet/wangxun... and the date stamp says October 2026 β β so yeah, shoutout to the kernel docs crew for keeping wx_ptp_tx_hwtstamp_work(9) looking cute. byeee π
π
π¦ 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