Re: [Xenomai] shared memory compatibility - advice sought

2013-04-16 Thread Michael Haberler
I've gotten the char shm driver to work flawlessly as suggested, and am now looking into dumping the rest of the SysV IPC legacy code in the linuxcnc code base and replace it by shm_open/mmap reading up on the Xenomai Posix skin a bit late (ahem) it occurs to me the best solution would have

Re: [Xenomai] shared memory compatibility - advice sought

2013-04-16 Thread Michael Haberler
Gilles, Am 16.04.2013 um 20:08 schrieb Gilles Chanteperdrix gilles.chanteperd...@xenomai.org: On 04/16/2013 02:59 PM, Michael Haberler wrote: ... reading up on ksrc/skins/posix/shm.c it occurs to me it isnt exactly a copy paste job getting that to run without the Xenomai environment

Re: [Xenomai] shared memory compatibility - advice sought

2013-04-11 Thread Gilles Chanteperdrix
On 04/11/2013 02:42 AM, Gilles Chanteperdrix wrote: Let us talk concretely. If I assume you want to share the same piece of memory in all the cases (which I originally did not). You would have a common kernel module able to allocate a piece of memory and associate it with an identifier (a

Re: [Xenomai] shared memory compatibility - advice sought

2013-04-11 Thread Michael Haberler
Gilles, I think I see the light although I'm not totally clear on all details yet: Am 11.04.2013 um 02:42 schrieb Gilles Chanteperdrix: On 04/11/2013 01:39 AM, Michael Haberler wrote: Gilles, thank you for your detailed answer. I'll concentrate on the RTDM suggestion because I'm after

Re: [Xenomai] shared memory compatibility - advice sought

2013-04-11 Thread Gilles Chanteperdrix
On 04/11/2013 09:00 AM, Michael Haberler wrote: Gilles, I think I see the light although I'm not totally clear on all details yet: There is a very simple solution, see my other mail: http://www.xenomai.org/pipermail/xenomai/2013-April/028169.html --

Re: [Xenomai] shared memory compatibility - advice sought

2013-04-11 Thread Michael Haberler
Am 11.04.2013 um 09:05 schrieb Gilles Chanteperdrix: On 04/11/2013 09:00 AM, Michael Haberler wrote: Gilles, I think I see the light although I'm not totally clear on all details yet: There is a very simple solution, see my other mail:

Re: [Xenomai] shared memory compatibility - advice sought

2013-04-11 Thread Gilles Chanteperdrix
On 04/11/2013 10:35 AM, Michael Haberler wrote: Am 11.04.2013 um 09:05 schrieb Gilles Chanteperdrix: On 04/11/2013 09:00 AM, Michael Haberler wrote: Gilles, I think I see the light although I'm not totally clear on all details yet: There is a very simple solution, see my other mail:

Re: [Xenomai] shared memory compatibility - advice sought

2013-04-10 Thread Gilles Chanteperdrix
On 04/10/2013 11:24 PM, Michael Haberler wrote: 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

Re: [Xenomai] shared memory compatibility - advice sought

2013-04-10 Thread Michael Haberler
Gilles, thank you for your detailed answer. I'll concentrate on the RTDM suggestion because I'm after a long-term stable solution, and also because I feel RTAI needs a similar approach please let me make sure I fully understand your suggestions, see below inline: Am 11.04.2013 um 00:31

Re: [Xenomai] shared memory compatibility - advice sought

2013-04-10 Thread Gilles Chanteperdrix
On 04/11/2013 01:39 AM, Michael Haberler wrote: Gilles, thank you for your detailed answer. I'll concentrate on the RTDM suggestion because I'm after a long-term stable solution, and also because I feel RTAI needs a similar approach please let me make sure I fully understand your