> -----Original Message----- > From: randy.spr...@christiedigital.com > [mailto:randy.spr...@christiedigital.com] > Sent: Wednesday, September 05, 2018 1:43 PM > To: Keller, Jacob E <jacob.e.kel...@intel.com>; linuxptp-users- > boun...@lists.sourceforge.net; linuxptp-users@lists.sourceforge.net > Subject: RE: get PTP clock time in kernel space? > > Thanks for the response Jake, > > Yeah, latency is definitely important here. We know it'll be on /dev/ptp0. > Thanks > for the insight on the two approaches. Sorry if this is a bit elementary, but > I'm > trying to better understand how you gain access to the PHC handle to make the > gettime64 call from within a kernel module. I take it it's something like the > driver_find() call to get the ptp_clock struct pointer? It's my first kernel > driver 😊 > > All the best, > Randy >
No problem, glad to help. Unfortunately, I actually don't know how I'd do that. I mostly work on network drivers, where we already know the device ptp structure. I suspect you can get it via something like driver_find though. Thanks, Jake ------------------------------------------------------------------------------ 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