All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] shared memory compatibility - advice sought
@ 2013-04-10 21:24 Michael Haberler
  2013-04-10 22:31 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Haberler @ 2013-04-10 21:24 UTC (permalink / raw)
  To: xenomai

I am building an RT application which is portable across RTAI, Xenomai/userland threads, Xenomai/kernel threads, RT-preempt and vanilla kernels (modulo timing restrictions). The xenomai kernel threads build is on a deprecation path but build for coverage reasons atm.

The application already does support several instances on one machine, for instance one instance could be Xenomai kernel threads, a second one Xenomai user threads, a third one Posix threads (thats an example and doesnt make sense, just pointing out whats possible)

The userland threads instances uses sysvipc shm; RTAI instance uses rtai_malloc/rtai_kmalloc; Xenomai kernel uses rt_heap_create/rt_heap_alloc.

--

A requirement has come up to enable access of shared memory between instances and that's where I dont know how to proceed - the issues I have are:

- incompatible shared memory models between RTAI, Xenomai and shmctl()
- sequencing imposed by kernel threads models - shared memory must be created in-kernel and can attached to in userland but not vice versa

I know it is a faint hope, let me try nevertheless:

- is there a way to make Xenomai kernel threads use shared memory created in userland by shmctl(2) or mmap for that matter
- if there is, are there any downsides to it
- any other creative solutions you could think of?


I am aware that atm this is really a RTAI question; nevertheless it (still) affects Xenomai a bit so I dare to ask here

thanks in advance

Michael




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

end of thread, other threads:[~2013-04-16 19:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 21:24 [Xenomai] shared memory compatibility - advice sought Michael Haberler
2013-04-10 22:31 ` Gilles Chanteperdrix
2013-04-10 23:39   ` Michael Haberler
2013-04-11  0:42     ` Gilles Chanteperdrix
2013-04-11  6:40       ` Gilles Chanteperdrix
2013-04-11  7:00       ` Michael Haberler
2013-04-11  7:05         ` Gilles Chanteperdrix
2013-04-11  8:35           ` Michael Haberler
2013-04-11 19:28             ` Gilles Chanteperdrix
2013-04-16 12:59               ` Michael Haberler
2013-04-16 18:08                 ` Gilles Chanteperdrix
2013-04-16 19:53                   ` Michael Haberler

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.