idpf_ptp_is...x_tstamp_ena(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ idpf_ptp_is_vport_tx_tstamp_ena β€” the vibe check for Tx timestamping πŸ’…

okay so this is a page from the Kernel API Manual, and it's about one very specific little function in ./drivers/net/ethernet/intel/idpf. bestie, it's giving "small function, big feelings" and we're gonna get into it πŸ’–


✨ NAME ✨

idpf_ptp_is_vport_tx_tstamp_ena β€” literally just verifying the Tx timestamping enablement for a given vport πŸŽ€

✨ SYNOPSIS ✨

bool idpf_ptp_is_vport_tx_tstamp_ena (struct idpf_vport *vport );

✨ ARGUMENTS ✨

  • vport β€” the Virtual port structure 🫢 that's the whole argument list. one (1) thing. she's low maintenance.

✨ DESCRIPTION ✨

so here's the tea β˜• β€” Tx timestamp capabilities are negotiated with the Control Plane only if all of these little conditions are met:

  • the device clock value can be read πŸ‘€
  • the Tx timestamp access type is different than NONE 🚫
  • the PTP clock for the adapter is created ✨

when all those conditions are satisfied (all three, no exceptions, it's an AND situation fr fr), the Tx timestamp feature is enabled and tx_tstamp_caps is allocated and fulfilled. slay πŸ’…

so yeah, that's what this function is checking for. it's basically the bouncer at the club door asking "are you on the list" 🌈

✨ RETURN ✨

  • true if the Tx timestamping is enabled πŸ‘‘
  • false otherwise πŸ’€

no in-between, no "maybe", no "it's complicated". binary queen behavior.

✨ SEE ALSO ✨

like, go read these too, iykyk:

  • Kernel file ./drivers/net/ethernet/intel/idpf/idpf_ptp.h
  • struct idpf_ptp_cmd(9)
  • enum idpf_ptp_access(9)
  • struct idpf_ptp_secondary_mbx(9)
  • enum idpf_ptp_tx_tstamp_state(9)
  • struct idpf_ptp_tx_tstamp_status(9)
  • struct idpf_ptp_tx_tstamp(9)
  • struct idpf_ptp_vport_tx_tstamp_caps(9)
  • struct idpf_ptp(9)
  • idpf_ptp_info_to_adapter(9)
  • struct idpf_ptp_dev_timers(9)
  • idpf_ptp_is_vport_rx_tstamp_ena(9)

🫢 hey bestie, ngl these are kernel internal APIs β€” read them with the source open, not from memory, that's the move πŸ’œ

that's the whole page!! mwah πŸ’‹ this one lives in ./drivers/net/ethernet/intel/idpf, dated October 2026, and it came to you straight from the Kernel API Manual β€” go off and timestamp responsibly, icon 🧚⭐

πŸ“¦ where this page comes from