* [Xenomai-help] kernel module misses rt_get_time
@ 2005-11-17 20:46 Gerald Dachs
2005-11-17 21:39 ` Gilles Chanteperdrix
2005-11-17 22:41 ` Jan Kiszka
0 siblings, 2 replies; 6+ messages in thread
From: Gerald Dachs @ 2005-11-17 20:46 UTC (permalink / raw)
To: xenomai
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] kernel module misses rt_get_time
2005-11-17 20:46 [Xenomai-help] kernel module misses rt_get_time Gerald Dachs
@ 2005-11-17 21:39 ` Gilles Chanteperdrix
2005-11-17 22:05 ` Philippe Gerum
2005-11-17 22:41 ` Jan Kiszka
1 sibling, 1 reply; 6+ messages in thread
From: Gilles Chanteperdrix @ 2005-11-17 21:39 UTC (permalink / raw)
To: Gerald Dachs; +Cc: xenomai
Gerald Dachs wrote:
> 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.
--
Gilles Chanteperdrix.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] kernel module misses rt_get_time
2005-11-17 21:39 ` Gilles Chanteperdrix
@ 2005-11-17 22:05 ` Philippe Gerum
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Gerum @ 2005-11-17 22:05 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Gilles Chanteperdrix wrote:
> Gerald Dachs wrote:
> > 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.
There is no user-space support for the RTAI skin currently.
>
> So, using xnpod_get_time appears to be the safe bet.
>
--
Philippe.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] kernel module misses rt_get_time
2005-11-17 20:46 [Xenomai-help] kernel module misses rt_get_time Gerald Dachs
2005-11-17 21:39 ` Gilles Chanteperdrix
@ 2005-11-17 22:41 ` Jan Kiszka
2005-11-17 22:54 ` Gerald Dachs
[not found] ` <20051117235310.4418aee6.gda@domain.hid>
1 sibling, 2 replies; 6+ messages in thread
From: Jan Kiszka @ 2005-11-17 22:41 UTC (permalink / raw)
To: Gerald Dachs; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 772 bytes --]
Gerald Dachs wrote:
> 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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] kernel module misses rt_get_time
2005-11-17 22:41 ` Jan Kiszka
@ 2005-11-17 22:54 ` Gerald Dachs
[not found] ` <20051117235310.4418aee6.gda@domain.hid>
1 sibling, 0 replies; 6+ messages in thread
From: Gerald Dachs @ 2005-11-17 22:54 UTC (permalink / raw)
To: xenomai
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] kernel module misses rt_get_time
[not found] ` <20051117235310.4418aee6.gda@domain.hid>
@ 2005-11-17 22:56 ` Jan Kiszka
0 siblings, 0 replies; 6+ messages in thread
From: Jan Kiszka @ 2005-11-17 22:56 UTC (permalink / raw)
To: Gerald Dachs, xenomai
[-- Attachment #1: Type: text/plain, Size: 486 bytes --]
Gerald Dachs wrote:
>>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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-11-17 22:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17 20:46 [Xenomai-help] kernel module misses rt_get_time Gerald Dachs
2005-11-17 21:39 ` Gilles Chanteperdrix
2005-11-17 22:05 ` Philippe Gerum
2005-11-17 22:41 ` Jan Kiszka
2005-11-17 22:54 ` Gerald Dachs
[not found] ` <20051117235310.4418aee6.gda@domain.hid>
2005-11-17 22:56 ` Jan Kiszka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.