* [Xenomai-help] Shared Memory?
@ 2005-12-20 23:39 Kent Borg
2005-12-20 23:48 ` Jan Kiszka
0 siblings, 1 reply; 3+ messages in thread
From: Kent Borg @ 2005-12-20 23:39 UTC (permalink / raw)
To: xenomai
Looking at the Xenomai documentation, I can't see how to do shared
memory communication between a realtime and non-realtime userland
task. Do I just use regular Linux shared memory, but somehow lock it
down?
Thanks,
-kb
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Shared Memory?
2005-12-20 23:39 [Xenomai-help] Shared Memory? Kent Borg
@ 2005-12-20 23:48 ` Jan Kiszka
2005-12-20 23:52 ` Kent Borg
0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2005-12-20 23:48 UTC (permalink / raw)
To: Kent Borg; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 563 bytes --]
Kent Borg wrote:
> Looking at the Xenomai documentation, I can't see how to do shared
> memory communication between a realtime and non-realtime userland
> task. Do I just use regular Linux shared memory, but somehow lock it
> down?
>
Use mixed RT/non-RT threads and you will have shared mem for free, use
processes and you only have to ask linux for some shared fragments. In
any case don't forget to mlockall() your RT-processes!
Jan
PS: You only need "special" Xenomai services for allocating mem when you
want to shared it between kernel and user land.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Shared Memory?
2005-12-20 23:48 ` Jan Kiszka
@ 2005-12-20 23:52 ` Kent Borg
0 siblings, 0 replies; 3+ messages in thread
From: Kent Borg @ 2005-12-20 23:52 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai
On Wed, Dec 21, 2005 at 12:48:17AM +0100, Jan Kiszka wrote:
> Use mixed RT/non-RT threads and you will have shared mem for free, use
> processes and you only have to ask linux for some shared fragments. In
> any case don't forget to mlockall() your RT-processes!
So does that mean regular shmget() to set up the shared memory, and
mlockall() in the RT process? I was thinking mlock(), but you have a
point that mlockall() would be better!
I haven't done shared memroy before, but it looks pretty easy.
Thanks,
-kb
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-20 23:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-20 23:39 [Xenomai-help] Shared Memory? Kent Borg
2005-12-20 23:48 ` Jan Kiszka
2005-12-20 23:52 ` Kent Borg
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.