All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Confusion regarding linux/xenomai tasks
@ 2009-02-13 17:46 Zara Tustra
  2009-02-13 18:04 ` Philippe Gerum
  2009-02-13 18:07 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 4+ messages in thread
From: Zara Tustra @ 2009-02-13 17:46 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

I've read some information regarding the difficulty of communication between
Linux threads and Xenomai tasks, and I've had some misinformation fired at
me from co-workers. I just want to make some points clear:

1) Can a Linux application launch Xenomai tasks, or I've horribly misread
things somewhere? My understanding is that Xenomai tasks are commonly
activated by a Linux process.

2) Can real-time Xenomai tasks started by a Linux application communicate
with it through the global variables of that application?

3) What happens if I make a syscall or similar non-real-time call from a
Xenomai task? Is the task automatically 'demoted' to non-real-time? How can
I tell?

[-- Attachment #2: Type: text/html, Size: 724 bytes --]

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

* Re: [Xenomai-help] Confusion regarding linux/xenomai tasks
  2009-02-13 17:46 [Xenomai-help] Confusion regarding linux/xenomai tasks Zara Tustra
@ 2009-02-13 18:04 ` Philippe Gerum
  2009-02-13 18:37   ` Zara Tustra
  2009-02-13 18:07 ` Gilles Chanteperdrix
  1 sibling, 1 reply; 4+ messages in thread
From: Philippe Gerum @ 2009-02-13 18:04 UTC (permalink / raw)
  To: Zara Tustra; +Cc: xenomai

Zara Tustra wrote:
> I've read some information regarding the difficulty of communication
> between Linux threads and Xenomai tasks, and I've had some
> misinformation fired at me from co-workers.

Regarding this, you definitely need to fix your co-workers, not Xenomai.

 I just want to make some
> points clear:
> 
> 1) Can a Linux application launch Xenomai tasks, or I've horribly
> misread things somewhere? My understanding is that Xenomai tasks are
> commonly activated by a Linux process.
> 
> 2) Can real-time Xenomai tasks started by a Linux application
> communicate with it through the global variables of that application?
> 
> 3) What happens if I make a syscall or similar non-real-time call from a
> Xenomai task? Is the task automatically 'demoted' to non-real-time? How
> can I tell?
>

Please start there:
http://www.xenomai.org/documentation/branches/v2.3.x/pdf/Native-API-Tour-rev-C.pdf

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


-- 
Philippe.


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

* Re: [Xenomai-help] Confusion regarding linux/xenomai tasks
  2009-02-13 17:46 [Xenomai-help] Confusion regarding linux/xenomai tasks Zara Tustra
  2009-02-13 18:04 ` Philippe Gerum
@ 2009-02-13 18:07 ` Gilles Chanteperdrix
  1 sibling, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2009-02-13 18:07 UTC (permalink / raw)
  To: Zara Tustra; +Cc: xenomai

Zara Tustra wrote:
> I've read some information regarding the difficulty of communication between
> Linux threads and Xenomai tasks, and I've had some misinformation fired at
> me from co-workers. I just want to make some points clear:
> 
> 1) Can a Linux application launch Xenomai tasks, or I've horribly misread
> things somewhere? My understanding is that Xenomai tasks are commonly
> activated by a Linux process.

Yes.

> 
> 2) Can real-time Xenomai tasks started by a Linux application communicate
> with it through the global variables of that application?

Task is vague. We usually talk about threads or processes and task may
mean either. I guess you mean threads. Yes, Xenomai threads and Linux
threads share the same address space if they are part of the same
process. But beware to locking. If you want to protect the shared
variables with a mutex for instance. If it is a Linux mutex, using it
from a Xenomai thread will cause it to be "demoted". If it is a Xenomai
mutex, then all threads that use it will need to be Xenomai threads,
this is the way this issue is usually solved, which means that there are
som Xenomai threads which have lower priorites.

> 
> 3) What happens if I make a syscall or similar non-real-time call from a
> Xenomai task? Is the task automatically 'demoted' to non-real-time?

yes.

> How can I tell?

You can ask to be notified by using a signal, see rt_task_mode or
pthread_set_mode_np.

-- 
                                                 Gilles.


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

* Re: [Xenomai-help] Confusion regarding linux/xenomai tasks
  2009-02-13 18:04 ` Philippe Gerum
@ 2009-02-13 18:37   ` Zara Tustra
  0 siblings, 0 replies; 4+ messages in thread
From: Zara Tustra @ 2009-02-13 18:37 UTC (permalink / raw)
  To: rpm, Xenomai-help, gilles.chanteperdrix

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

On Fri, Feb 13, 2009 at 4:04 PM, Philippe Gerum <rpm@xenomai.org> wrote:

> Regarding this, you definitely need to fix your co-workers, not Xenomai.
>
>
I've filed a bug report.

But thanks, that clarified a lot of other things as well.

[-- Attachment #2: Type: text/html, Size: 505 bytes --]

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

end of thread, other threads:[~2009-02-13 18:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-13 17:46 [Xenomai-help] Confusion regarding linux/xenomai tasks Zara Tustra
2009-02-13 18:04 ` Philippe Gerum
2009-02-13 18:37   ` Zara Tustra
2009-02-13 18:07 ` 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.