Hello, I am looking to implement periodic querying of ptp clock state. I have the /dev/ptpX device file open, and I am reading timestamps from it using clock_gettime(phc_fd, ...).
All the information I am interested in is available from pmc -u 'GET CURRENT_DATA_SET'. But I am not keen to run this operation in a separate process. It seems that pmc is talking to ptp4l roughly by, socket(AF_UNIX, SOCK_DGRAM, 0) = 3 bind(3, {sa_family=AF_UNIX, sun_path="/var/run/pmc.789975"}, 110) sendto(3, ...) recvfrom(3, ...) All well and good ; is there documentation about the data structures sent and received in this manner? (other than the pmc code ... I guess I will look there next). It would be even simpler if I could make ioctls against the open /dev/ptpX fd. It does seem like some such ioctls might exist [1] but I can't find documentation for those, either. Thanks, -Todd [1] https://elixir.bootlin.com/linux/latest/source/tools/testing/selftests/ptp/testptp.c#L279 _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users