lkml.org 
[lkml]   [2023]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] ptp: add ioctl interface for ptp_gettimex64any()
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

\
 
 \ /
  Last update: 2023-09-30 23:22    [W:0.061 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site