Re: [Linuxptp-devel] addition of a "get frequency" op?
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2014-06-07 15:39:28
|
On Fri, Jun 06, 2014 at 06:29:56PM +0000, Keller, Jacob E wrote: > Hi Richard (and anyone else who might care), > > I have thinking it might be worth adding an extra (optional) operation > for ptp devices which allows querying the current adjusted frequency > value. This could be useful for debugging purposes, since there is no > way today to obtain this information from the device. But we already have this. Calling clock_adjtime with a cleared struct timex will return this in the 'freq' field. Linuxptp uses a wrapper function, clockadj_get_freq. Or did you mean something else? Thanks, Richard |