All of lore.kernel.org
 help / color / mirror / Atom feed
* AW: [Xenomai-help] InterProcessCommunication between Xenomai taskand Linux process
@ 2006-10-30  9:02 Roderik_Wildenburg
  2006-10-30  9:21 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Roderik_Wildenburg @ 2006-10-30  9:02 UTC (permalink / raw)
  To: gilles.chanteperdrix; +Cc: xenomai

> Roderik_Wildenburg@domain.hid wrote:
> > Is there a standard way for communication between nativ Linux 
> > processes and Xenomai task which ensures that the Xenomai task does 
> > not lose its raltime capability (e.g. can I use Xenomai 
> (Posix)-queues 
> > within Linux processes ?).
> > I just need a hint, where I can read about it.
> 
> Xenomai POSIX messages queues can only be used by Xenomai 
> tasks, but Xenomai tasks do not switch to secondary mode when 
> using POSIX messages queues. Note that when using the POSIX 
> skin, all tasks are Xenomai tasks, the SCHED_OTHER policy 
> being reserved to non-realtime task.

How do I use "POSIX messages queues" and not "Xenomai POSIX messages
queues" within a Xenomai task. Do I have to use the real_-prefix (e.g.
real_mq_open()) ?
Can a Xenomai-task-queues and a Linux-process-queues use the same queue
name (Linux: mq_open("queuename",..) and Xeno:
real_mq_open("queuename",....) (or can I even use
mq_open("queuename,.)in Xenomai)) ?
Please vorgive these stupid questions, but I never worked with POSIX
queues before.
Thanks a lot.


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

* Re: AW: [Xenomai-help] InterProcessCommunication between Xenomai taskand Linux process
  2006-10-30  9:02 AW: [Xenomai-help] InterProcessCommunication between Xenomai taskand Linux process Roderik_Wildenburg
@ 2006-10-30  9:21 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2006-10-30  9:21 UTC (permalink / raw)
  To: Roderik_Wildenburg; +Cc: xenomai

Roderik_Wildenburg@domain.hid wrote:
>>Roderik_Wildenburg@domain.hid wrote:
>>
>>>Is there a standard way for communication between nativ Linux 
>>>processes and Xenomai task which ensures that the Xenomai task does 
>>>not lose its raltime capability (e.g. can I use Xenomai 
>>
>>(Posix)-queues 
>>
>>>within Linux processes ?).
>>>I just need a hint, where I can read about it.
>>
>>Xenomai POSIX messages queues can only be used by Xenomai 
>>tasks, but Xenomai tasks do not switch to secondary mode when 
>>using POSIX messages queues. Note that when using the POSIX 
>>skin, all tasks are Xenomai tasks, the SCHED_OTHER policy 
>>being reserved to non-realtime task.
> 
> 
> How do I use "POSIX messages queues" and not "Xenomai POSIX messages
> queues" within a Xenomai task. Do I have to use the real_-prefix (e.g.
> real_mq_open()) ?

Yes, but if you use the regular POSIX messages queues, Xenomai tasks
will switch to secondary mode.

I insist: the best option if you want to use the POSIX skin, is to
make your non real-time side of the queue a Xenomai task using the
SCHED_OTHER policy.

> Can a Xenomai-task-queues and a Linux-process-queues use the same queue
> name (Linux: mq_open("queuename",..) and Xeno:
> real_mq_open("queuename",....) (or can I even use
> mq_open("queuename,.)in Xenomai)) ?

You can use the same name, but you will get two different unrelated
objects.

-- 
                                                  Gilles Chanteperdrix


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

end of thread, other threads:[~2006-10-30  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30  9:02 AW: [Xenomai-help] InterProcessCommunication between Xenomai taskand Linux process Roderik_Wildenburg
2006-10-30  9:21 ` 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.