All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai and reading of linux files?
@ 2009-03-06  9:46 Jens Köhler
  2009-03-06  9:54 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Köhler @ 2009-03-06  9:46 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

Hello,

I like to port a rtai application  to xenomai. The rtai application has a
user space part and a kernel module. Both communication together by rtai
queues and a shared memory.
Do I need for xenomai still queues? Or is it f.i. possible to read or write
linux files from xenomai application without problems?

Thanks and regards,
Jens

[-- Attachment #2: Type: text/html, Size: 371 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] Xenomai and reading of linux files?
  2009-03-06  9:46 [Xenomai-help] Xenomai and reading of linux files? Jens Köhler
@ 2009-03-06  9:54 ` Gilles Chanteperdrix
  2009-03-06 11:41   ` Jens Köhler
  0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2009-03-06  9:54 UTC (permalink / raw)
  To: Jens Köhler; +Cc: xenomai

Jens Köhler wrote:
> Hello,
> 
> I like to port a rtai application  to xenomai. The rtai application has a
> user space part and a kernel module. Both communication together by rtai
> queues and a shared memory.
> Do I need for xenomai still queues? Or is it f.i. possible to read or write
> linux files from xenomai application without problems?

reading and writing will work, but will cause the thread which does it
to switch to secondary mode (if it is a real-time thread), so it may not
be what you want.

-- 
                                                 Gilles.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] Xenomai and reading of linux files?
  2009-03-06  9:54 ` Gilles Chanteperdrix
@ 2009-03-06 11:41   ` Jens Köhler
  2009-03-06 13:07     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Köhler @ 2009-03-06 11:41 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

2009/3/6 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>

>  Jens Köhler wrote:
> > Hello,
> >
> > I like to port a rtai application  to xenomai. The rtai application has a
> > user space part and a kernel module. Both communication together by rtai
> > queues and a shared memory.
> > Do I need for xenomai still queues? Or is it f.i. possible to read or
> write
> > linux files from xenomai application without problems?
>
> reading and writing will work, but will cause the thread which does it
> to switch to secondary mode (if it is a real-time thread), so it may not
> be what you want.
>
> --
>                                                 Gilles.


Hi Gilles,

thank you for your fast answer. I need in periodic real time task data from
user space. Then I have to use a msg_queue!?
How can I check if my real time task/ thread runs accidentally in secondary
mode?

Thanks,
Jens

[-- Attachment #2: Type: text/html, Size: 1383 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] Xenomai and reading of linux files?
  2009-03-06 11:41   ` Jens Köhler
@ 2009-03-06 13:07     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2009-03-06 13:07 UTC (permalink / raw)
  To: Jens Köhler; +Cc: xenomai

Jens Köhler wrote:
> 2009/3/6 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
> 
>>  Jens Köhler wrote:
>>> Hello,
>>>
>>> I like to port a rtai application  to xenomai. The rtai application has a
>>> user space part and a kernel module. Both communication together by rtai
>>> queues and a shared memory.
>>> Do I need for xenomai still queues? Or is it f.i. possible to read or
>> write
>>> linux files from xenomai application without problems?
>> reading and writing will work, but will cause the thread which does it
>> to switch to secondary mode (if it is a real-time thread), so it may not
>> be what you want.
>>
>> --
>>                                                 Gilles.
> 
> 
> Hi Gilles,
> 
> thank you for your fast answer. I need in periodic real time task data from
> user space. Then I have to use a msg_queue!?

Xenomai allows real-time in user-space (as RTAI does, by the way), so
the problem is not user-space versus kernel-space, the problem is
primary mode versus secondary mode.

> How can I check if my real time task/ thread runs accidentally in secondary
> mode?

See:
http://www.xenomai.org/documentation/branches/v2.4.x/html/api/group__task.html#g915e7edfb0aaddb643794d7abc7093bf

And for an introduction on xenomai native api, see:
http://www.xenomai.org/documentation/branches/v2.3.x/pdf/Native-API-Tour-rev-C.pdf

-- 
                                                 Gilles.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-06 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06  9:46 [Xenomai-help] Xenomai and reading of linux files? Jens Köhler
2009-03-06  9:54 ` Gilles Chanteperdrix
2009-03-06 11:41   ` Jens Köhler
2009-03-06 13:07     ` Gilles Chanteperdrix

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.