All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Problem using sem_open and rt_sem_create
@ 2009-01-29  6:27 Daniel Adams
  2009-01-29  6:38 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Adams @ 2009-01-29  6:27 UTC (permalink / raw)
  To: xenomai

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

Hi *,

I'm fairly new to Xenomai and am having a few issues and was wondering if
anyone could provide me with help

I have written some code to create a process which waits on a named
semaphore and then there is another process which posts to it. I originally
developed the code using the posix interface under a standard Linux
environment and have proved it works.
I have since ported the code so that the waiting half creates and waits on
the semaphore using the native skin and the posting half uses the posix
skin.

I tried naming the semaphore using the leading '/' as the posix standard
suggests, but found that using the '/' causes the rt_sem_create(&rt_sem,
SEM_NAME, 0, S_PULSE)  to return EINVAL. Removing the '/' allows the
semaphore to be created but now when I try to open the semaphore
with sem_open(SEM_NAME, O_EXCL), I get an error that the file doesn't exist.
Is there something that I'm missing? I've check the registry and the
semaphore appears under /proc/xenomai/registry/native/semaphores/.

Thanks,

Dan Adams

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

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

end of thread, other threads:[~2009-01-29  7:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29  6:27 [Xenomai-help] Problem using sem_open and rt_sem_create Daniel Adams
2009-01-29  6:38 ` Gilles Chanteperdrix
2009-01-29  6:46   ` Daniel Adams
2009-01-29  7:13     ` 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.