Skip to contentSkip to conversation

kernel module misses rt_get_time

Xenomai-help Gerald Dachs 4 participants 6 messages Nov 17, 2005 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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 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?

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.
#2 lore raw
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 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?

Quoted 3 lines

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.

There is no user-space support for the RTAI skin currently.

Quoted 3 lines

So, using xnpod_get_time appears to be the safe bet.

Signature · 1 line
Philippe.
#3 lore raw
In reply to Gerald Dachs
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 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?

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

#4 lore raw
Quoted 3 lines

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

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

#6 lore raw
In reply to a message not in the archive
Quoted 8 lines · Gerald Dachs
Quoted 3 lines

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

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.

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