Re: [PATCH 3/4] ptp: add ioctl interface for ptp_gettimex64any()
From: Richard Cochran
Date: Sat Sep 30 2023 - 17:22:05 EST
On Thu, Sep 28, 2023 at 07:37:43PM -0700, Mahesh Bandewar wrote:
> diff --git a/include/uapi/linux/ptp_clock.h b/include/uapi/linux/ptp_clock.h
> index 1f1e98966cff..73bd17055a37 100644
> --- a/include/uapi/linux/ptp_clock.h
> +++ b/include/uapi/linux/ptp_clock.h
> @@ -166,6 +166,18 @@ struct ptp_sys_offset_extended {
> struct ptp_clock_time ts[PTP_MAX_SAMPLES][3];
> };
>
> +struct ptp_sys_offset_any {
> + unsigned int n_samples; /* Desired number of measurements. */
> + enum ptp_ts_types ts_type; /* One of the TS types */
clockid_t other_clock;
Hm?
> + unsigned int rsv[2]; /* Reserved for future use. */
> + /*
> + * Array of [TS, phc, TS] time stamps. The kernel will provide
> + * 3*n_samples time stamps.
> + * TS is any of the ts_type requested.
> + */
> + struct ptp_clock_time ts[PTP_MAX_SAMPLES][3];
> +};
Thanks,
Richard