On Sat, Oct 15, 2022 at 01:46:08PM -0700, todd freed wrote: > 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?
See the management facility in IEEE 1588. That standard defines and documents the GET CURRENT_DATA_SET request+response messages. > 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. No, the device driver implements basic clock operations, like gettime and settime, and it has nothing at all to do with the PTP. Thanks, Richard _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users