I'm new to kernel driver development and was wondering if it is possible to 
obtain a PTP timestamp direct from the NIC's PHC within a kernel module? E.g. 
timestamping an IRQ after a GPIO pin is triggered?

If we synchronize the system clock to a NIC PHC clock (e.g. phc2sys -s enp6s0 
-m -O 0), in the kernel module calling getnstimeofday() looks like we get what 
we need. I'd be curious if there is a more direct way to query the NIC PHC 
clock from within the kernel module without relying on the system clock to be 
synchronized using phc2sys?

Cheers,
Randy
------------------------------------------------------------------------------
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