STRUCT ICE_PTP_PORT(9)
π struct ice_ptp_port(9) π
okay so welcome to the kernel API manual bestie, this one's about struct ice_ptp_port and it lives in section 9 of the Kernel API Manual, which is giving "deep lore" energy ngl π§
β¨ NAME β¨
struct ice_ptp_port β the data used to initialize an external port for PTP π°οΈ
πΈ SYNOPSIS πΈ
struct ice_ptp_port {
struct list_head list_node;
struct ice_ptp_tx tx;
struct kthread_delayed_work ov_work;
struct mutex ps_lock;
bool link_up;
u8 tx_fifo_busy_cnt;
u8 port_num;
enum ice_e825c_ref_clk tx_clk;
enum ice_e825c_ref_clk tx_clk_req;
};
like, that's the whole struct, no cap. every field, exactly as written, we do not abbreviate here π
π Members π
okay bestie let's go field by field, this is the part where you go "omg that's what that is":
list_nodeβ the list member structure, literally just chillin' in a list fr frtxβ Tx timestamp tracking for this port, it's keeping receipts (timestamped ones) β±οΈov_workβ delayed work task for tracking when the PHY offset is valid β like a little scheduled reminder that goes off when the offset finally makes sense π«Άps_lockβ mutex used to protect the overall PTP PHY start procedure, so nobody barges in mid-startup, we respect the lock πlink_upβ indicates whether the link is up, yes/no, that's it, that's the bool πtx_fifo_busy_cntβ number of times the Tx FIFO was busy π like a little counter of "ugh try again"port_numβ the port number this structure represents, its whole identity ngl πͺͺtx_clkβ currently active Tx reference clock source, the one clocking it right now βtx_clk_reqβ requested Tx reference clock source (new target), i.e. the glow-up it's aiming for π¦
π Description π
so basically: this structure contains data indicating whether a single external port is ready for PTP functionality. that's the vibe check right there.
it's used to track the port initialization and determine when the port's PHY offset is valid π β like it's the main character that knows when the port has finally finished getting ready and the offset actually means something. periodt.
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/ethernet/intel/ice/ice_ptp.h struct ice_tx_tstamp(9)enum ice_tx_tstamp_work(9)struct ice_ptp_tx(9)struct ice_ptp_pin_desc(9)struct ice_ptp(9)
go read those next, iykyk πβ¨
and that's the page!! this one came from ./drivers/net/ethernet/intel/ice, dated October 2026, and it's filed under struct ice_ptp_port(9) β ty for coming to my ted talk, mwah ππΈπ
π¦ 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