All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Problem with semaphores in an RTDM driver
@ 2008-05-28  8:53 Johan Borkhuis
  2008-05-28  9:03 ` Sebastian Smolorz
  2008-05-28  9:10 ` Jan Kiszka
  0 siblings, 2 replies; 5+ messages in thread
From: Johan Borkhuis @ 2008-05-28  8:53 UTC (permalink / raw)
  To: Xenomai help

Hello,

I am trying to use semaphores inside my driver. It is a driver that can 
be used as standard Linux driver and RTDM driver.

However, when I use rt_sem_p or rtdm_sem_timeddown in my read_nrt 
function I get a -1 return value, indicating EPERM. When I look at the 
thread state I see a value of 0x00400080, which indicates a standard 
Linux thread. The rtdm-context is 0x00000001.
The userspace thread has a thread state of 00300380.

What am I doing wrong here? How can I get a semaphore or other sync 
mechanism to work inside my RTDM driver?

We are using Xenomai 2.4.1 on Linux 2.6.20 for powerpc.

Kind regards,
    Johan Borkhuis

-- 
Johan Borkhuis                                  Dutch Space BV
email:        j.borkhuis@domain.hid          Newtonweg 1
phone:        071-5245788                       Leiden
fax:          071-5245499                       The Netherlands



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

end of thread, other threads:[~2008-05-28 12:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28  8:53 [Xenomai-help] Problem with semaphores in an RTDM driver Johan Borkhuis
2008-05-28  9:03 ` Sebastian Smolorz
2008-05-28  9:10 ` Jan Kiszka
2008-05-28 12:16   ` Johan Borkhuis
2008-05-28 12:30     ` Jan Kiszka

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.