Getting time in realtime kernel driver

François Legal <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <131f-6a035380-221-a70b1c0@235187577>
Hello,

I think I already asked about the same question some time ago, but I think I did not get a working answer, so here I am again.

On xenomai 3.2 + Ipipe (linux 5.4), I need to be able to get in a RT driver the current linux wall clock (impacted from NTP or PTP).
I found out I get the correct value with ktime_get_real_ts64. Was willing to use __ktime_get_real_seconds but this one is not precise enought for my application.

So my question is : is it safe to use ktime_get_real_ts64 from within an RT driver ioctl function, and if not, which API in xenomai gives the exact same time as this one ?

Thanks

François
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.