ptp_txintr()
Return a packet's Tx timestamp without associating it with a memory buffer (mbuf)
Synopsis:
#include <qnx/ptp/ptp_mod.h>int ptp_txintr(struct ptp_ctx *ctx,
struct mbuf *m)Arguments:
- ctx
- The driver's PTP context.
- m
- The
mbufcontaining the packet.
Library:
ptpDescription:
The ptp_txintr() function unlinks the MTAG_PTP_TX_TSTMP tag from the mbuf and adds it to a queue. It also copies the ptp_uhdr attributes from the PTP packet header ptp_hdr to allow the m_tag to be found later. These attributes are compared later using a call to PTP_COMPARE_HDR(), if ptp_txintr_finish() is used.
Returns:
EOK on success; otherwise, one of the following:
- EINVAL - The
mbufprovided does not contain a PTP packet. - ENOMEM - Unable to allocate space for the header.
Page updated:
