From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Jens Köhler" <jenskxxx@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai and reading of linux files?
Date: Fri, 06 Mar 2009 14:07:25 +0100 [thread overview]
Message-ID: <49B1200D.7000204@domain.hid> (raw)
In-Reply-To: <76902d360903060341y20a45b61y1a6e484767baca80@domain.hid>
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.
prev parent reply other threads:[~2009-03-06 13:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49B1200D.7000204@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jenskxxx@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.