Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: > On Mon, Nov 9, 2009 at 3:49 PM, Gilles Chanteperdrix > wrote: >> Ah. Sorry. Found the bug in the mean time. It is in the Makefile. You do >> not pass the compilation flags for compilation for Xenomai posix skin. >> So, your user space application uses plain linux semaphor

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Remco den Breeje
On Mon, Nov 9, 2009 at 3:49 PM, Gilles Chanteperdrix wrote: > > Ah. Sorry. Found the bug in the mean time. It is in the Makefile. You do > not pass the compilation flags for compilation for Xenomai posix skin. > So, your user space application uses plain linux semaphores. Ah, that makes sense. I'

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: > Classic. Ah. Sorry. Found the bug in the mean time. It is in the Makefile. You do not pass the compilation flags for compilation for Xenomai posix skin. So, your user space application uses plain linux semaphores. See: doc/txt/pse51-skin.txt in xenomai sources or: http:/

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: > Classic. Ok. I see nothing wrong, I will have a look at this tonight. -- Gilles ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: > Attached you find an example. No. There is nothing attached. -- Gilles ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Remco den Breeje
Classic. On Mon, Nov 9, 2009 at 3:22 PM, Remco den Breeje wrote: > On Mon, Nov 9, 2009 at 2:06 PM, Jan Kiszka wrote: >> The design. :) > > I totally agree :) However, I'm using generated (user-space) code that > I want to modify as little as possible. So with a simple ioctl-call I > want to be a

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Remco den Breeje
On Mon, Nov 9, 2009 at 2:06 PM, Jan Kiszka wrote: > The design. :) I totally agree :) However, I'm using generated (user-space) code that I want to modify as little as possible. So with a simple ioctl-call I want to be able to switch between software (pthread) and hardware triggering (rtdm-driver

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: > Hi all, > > I'm having trouble trying to share a semaphore that is created in > user-space context with a rtdm-driver that runs in kernel-space. I was > hoping you could explain me what I'm doing wrong. > > I'm using a posix-skin based user-space Xenomai application that

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Jan Kiszka
Remco den Breeje wrote: > Hi all, > > I'm having trouble trying to share a semaphore that is created in > user-space context with a rtdm-driver that runs in kernel-space. I was > hoping you could explain me what I'm doing wrong. The design. :) > > I'm using a posix-skin based user-space Xenomai

[Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Remco den Breeje
Hi all, I'm having trouble trying to share a semaphore that is created in user-space context with a rtdm-driver that runs in kernel-space. I was hoping you could explain me what I'm doing wrong. I'm using a posix-skin based user-space Xenomai application that runs a loop which is triggered by a s