Re: [PATCH 3/4] ptp: add ioctl interface for ptp_gettimex64any()

From: Richard Cochran
Date: Sat Sep 30 2023 - 19:07:38 EST


On Sat, Sep 30, 2023 at 02:25:23PM -0700, Richard Cochran wrote:
> But how about a new system call instead?
>
> clock_compare(clockid_t a, clockid_t b);

It could have a third argument, n_samples, that would only be used for
"slow" clocks like PCIe MACs. The system call would return the offset
from the shortest measurement (which is really what user space needs).

Thanks,
Richard