Re: [PATCH 2/4] ptp: add ptp_gettimex64any() support

From: Richard Cochran
Date: Wed Oct 04 2023 - 00:27:11 EST


On Mon, Oct 02, 2023 at 05:24:43PM -0700, Mahesh Bandewar (महेश बंडेवार) wrote:

> I'm not sure which one you are referring to. These defs need to be
> UAPI and the one defined in time.h are not all relevant in this case
> (we just need only a few of those) hence the definition. However, if I
> missed something, please point me to it.

You are missing this:

> > > + PTP_TS_REAL,

#define CLOCK_REALTIME 0

> > > + PTP_TS_MONO,

#define CLOCK_MONOTONIC 1

> > > + PTP_TS_RAW,

#define CLOCK_MONOTONIC_RAW 4

See?