All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Richard Cochran <richardcochran@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Using plain old POSIX shm_open with real time threads
Date: Fri, 05 Aug 2011 17:39:50 +0200	[thread overview]
Message-ID: <1312558790.2324.42.camel@domain.hid> (raw)
In-Reply-To: <20110805133006.GA2945@domain.hid>

On Fri, 2011-08-05 at 15:30 +0200, Richard Cochran wrote:
> Dear xenomai people,
> 
> I would like to have a shared ram fifo between a normal Linux program
> and a xenomai program that uses the POSIX skin. Can I simply use
> __raw_shm_open and __raw_mmap in the xenomai thread, or would there be
> some penalty or bad side affect on the RT thread?
> 
> I see that the documented way for RT/non-RT IPC is the message
> pipe. Perhaps you could comment on the pros/cons of using it, compared
> with my shared memory idea.

It really boils down to whether your use case is compatible with copying
data between peers (amount, frequency etc.) to gain convenient
synchronization and safe access mechanisms, which you would have to
implement with shared memory otherwise.

The recommended RT IPCs since Xenomai 2.5 are available from the
RTDM-based RTIPC driver, which currently provides three different IPCs
under the same umbrella.

This driver exposes a socket interface to userland, and also benefits
from the intra-kernel API of RTDM (i.e. you can send/receive data from
another driver). For more info, examples/rtdm/profiles/ipc and the
doxygen doc are also available.

> 
> Thanks,
> 
> Richard
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Philippe.




      parent reply	other threads:[~2011-08-05 15:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-05 13:30 [Xenomai-help] Using plain old POSIX shm_open with real time threads Richard Cochran
2011-08-05 14:05 ` Gilles Chanteperdrix
2011-08-05 15:58   ` Richard Cochran
2011-08-05 15:39 ` Philippe Gerum [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=1312558790.2324.42.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=richardcochran@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.