All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darren Hart <dvhltc@us.ibm.com>
To: "M. Koehrer" <mathias_koehrer@arcor.de>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: Replacement for Xenomai's Message queues?
Date: Thu, 28 Jan 2010 10:56:50 -0800	[thread overview]
Message-ID: <4B61DDF2.6010309@us.ibm.com> (raw)
In-Reply-To: <21390406.1264666196447.JavaMail.ngmail@webmail08.arcor-online.net>

M. Koehrer wrote:
> Hi all,
> 
> I am about to switch an realtime application from Xenomai to the RT_PREEMPTION patch.
> Everything works really smooth, however I have one question.
> With my Xenomai application I use the message queue which combine transfer (including queuing)
> of data with activation of the thread.
> In my Xenomai application I use this feature quite frequently. Now, I am not sure how to do an equivalent
> with the RT_PREEMPT patch.
> (see http://www.xenomai.org/documentation/xenomai-2.4/html/api/group__native__queue.html)
> Of course I could use condition variables and a struct or array to hold the data I want to pass with the activation
> of a thread. However, using this approach I do not have the queuing (which is some extra effort I could spent...).
> Another idea I have: I could use sockets which realize the queuing but the overhead is too high.
> 
> Is there any suitable way to implement a message queue like approach using RT_PREEMPT patch?
> I am running x86 (Dual/Quad Cores).

I don't if we have many xenomai experts on this list. It would help to 
understand which aspects of the Xenomai message queue are important to 
you (other than the ability to block on a queue and wake when a message 
is available). For a basic message queueing system with the ability to 
prioritize messages, you can look to the POSIX.4 Message Queues. A 
google search will provide plenty of howto's, and the API appears at 
least similar to what you were using with Xenomai.

I haven't looked, but I don't think Linux supports message driven 
Priority Inheritance 
(http://www.qnx.com/developers/docs/6.3.2/neutrino/sys_arch/kernel.html#Priority_inheritance_messages).

-- 
Darren Hart
IBM Linux Technology Center
Real-Time Linux Team

  reply	other threads:[~2010-01-28 18:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-28  8:09 Replacement for Xenomai's Message queues? M. Koehrer
2010-01-28 18:56 ` Darren Hart [this message]
2010-01-28 20:06   ` M. Koehrer
2010-01-28 21:12     ` Darren Hart
2010-01-28 21:50     ` Carsten Emde
2010-01-28 22:18     ` Tim Sander

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=4B61DDF2.6010309@us.ibm.com \
    --to=dvhltc@us.ibm.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=mathias_koehrer@arcor.de \
    /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.