On Thu, Mar 22, 2018 at 09:15:31AM +0200, Yan Yankovskyi via Linuxptp-users 
wrote:
> In case of use software timestamping we are adjusting system clock. Is it
> possible to create another clock, and use it in ptp4l? I see that in
> clock_create function in case if phc_index < 0 we use CLOCK_REALTIME as
> value for clkid, so I suppose it isn't possible.

Right.  The kernel delivers SW time stamps on CLOCK_REALTIME, and so
the use of CLOCK_REALTIME with SW time stamping is hard coded.

> But it implies that using
> software timestamping we are limited to only one instance of ptp4l at the
> same time, while using hardware timestamping we can launch as many ptp4l
> instances simultaneously, as many physical devices we have, right?

Well, using option free_running=1 you can have as many instances as
you like, but I'm not sure why would anyone want to do this.  You can
even launch multiple ptp4l programs on the same interface in different
PTP domains, assuming at most one instance has free_running=0.

What problem are you trying to solve?

Thanks,
Richard


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to