kernel module misses rt_get_time
Hi,
I am new to xenomai, sorry if I ask something stupid.
I try to use a kernel module with xenomai, but upon loading it misses rt_get_time. It looks like it was build with rtai. I have thought I could use it with xenomai via the rtai skin.
In the rtai skin I found only rt_get_time_ns.
Searching the web I found them both mentioned, I didn't found that it is replaced by another function. Is xnpod_get_time the same?
Gerald
Quoted 10 lines · Gerald Dachs
Hi,
I am new to xenomai, sorry if I ask something stupid.
I try to use a kernel module with xenomai, but upon loading it missesrt_get_time. It looks like it was build with rtai. I have thought I could use it with xenomai via the rtai skin.
In the rtai skin I found onlyrt_get_time_ns.
Searching the web I found them both mentioned, I didn't found that it is replaced by another function. Isxnpod_get_timethe same?
Looking at branch 2.0 RTAI skin, the rt_get_time function appears to be missing. Looking at branch 2.1 RTAI skin, the future trunk, well, there is nothing but the init.c file.
So, using xnpod_get_time appears to be the safe bet.
Signature · 1 line
Gilles Chanteperdrix.
Quoted 12 lines · Gilles Chanteperdrix
Quoted 10 lines · Gerald Dachs
Hi,
I am new to xenomai, sorry if I ask something stupid.
I try to use a kernel module with xenomai, but upon loading it missesrt_get_time. It looks like it was build with rtai. I have thought I could use it with xenomai via the rtai skin.
In the rtai skin I found onlyrt_get_time_ns.
Searching the web I found them both mentioned, I didn't found that it is replaced by another function. Isxnpod_get_timethe same?
Quoted 3 lines
Looking at branch 2.0 RTAI skin, the
rt_get_timefunction appears to be missing. Looking at branch 2.1 RTAI skin, the future trunk, well, there is nothing but theinit.cfile.
There is no user-space support for the RTAI skin currently.
Quoted 3 lines
So, using
xnpod_get_timeappears to be the safe bet.
Signature · 1 line
Philippe.
Quoted 10 lines · Gerald Dachs
Hi,
I am new to xenomai, sorry if I ask something stupid.
I try to use a kernel module with xenomai, but upon loading it missesrt_get_time. It looks like it was build with rtai. I have thought I could use it with xenomai via the rtai skin.
In the rtai skin I found onlyrt_get_time_ns.
Searching the web I found them both mentioned, I didn't found that it is replaced by another function. Isxnpod_get_timethe same?
Actually, rt_get_time and rt_get_time_ns are the same in the RTAI compatibility skin (counts are nanoseconds here, see count2nano e.g.). Therefore, a
static inline RTIME rt_get_time(void) {
return rt_get_time_ns();
}should make it into rtai/timer.h (sorry, I have nothing to generate a patch at hand).
Jan
Quoted 3 lines
Actually,
rt_get_timeandrt_get_time_nsare the same in the RTAI compatibility skin (counts are nanoseconds here, see count2nano e.g.). Therefore, a
Sorry, but I don't think so. In the rtai docs I read that rt_get_time returns ticks and rt_get_time_ns returns nano seconds.
Gerald
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Gerald Dachs
Quoted 3 lines
Actually,
rt_get_timeandrt_get_time_nsare the same in the RTAI compatibility skin (counts are nanoseconds here, see count2nano e.g.). Therefore, aSorry, but I don't think so. In the rtai docs I read that
rt_get_timereturns ticks andrt_get_time_nsreturns nano seconds.
Yes, in the original RTAI. But the emulation skin of Xenomai makes no difference in this regard - all nanoseconds. That's why the conversion functions are void here.
Jan