Hi,

In my application, I need to know the status of the local PTP clock.
So I opened
a Unix domain socket to "/var/run/ptp4l" and asks for the magement messages.
But this only works as root.
Is there a way to make this, for simple user,  for GET action ?

I also need to get the clockid on /dev /ptp0.

For now I use the macro

#define CLOCKFD 3
#define FD_TO_CLOCKID (fd) ((~ (clockid_t) (fd) << 3) | CLOCKFD)

but I can not get the file descriptor to /dev/ptp0 that as root.
Can we make a clock_gettime() on /dev/ptp0 as simple user ?

Perhaps with cabability ?

Thank you
------------------------------------------------------------------------------
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to