All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Yigal Goldberger <yigal_gold@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] shm_open returns errno 38 - function not implemented
Date: Fri, 16 Oct 2009 11:00:57 +0200	[thread overview]
Message-ID: <4AD83649.7080109@domain.hid> (raw)
In-Reply-To: <446570.78791.qm@domain.hid>

Yigal Goldberger wrote:
> Hi again,
> 
> I'm trying to create a shared memory area .
> The system is a powerpc based board running linux kernel 2.6.29.4
> and Xenomai 2.4.8 .
> When I call shm_open from user space I get error 38 - function not implemented .

Normally, xenomai's shm_open tries to use the xenomai posix skin service
first, and if it fails (because the shared memory option was not enabled
in the posix skin configuration), falls back to linux service.

You get this error because:
- Xenomai posix skin's shared memory services are not enabled;
- your glibc does not support posix shared memory services (you can
check this in xenomai's config.log, there is a test detecting it).

Now, Xenomai posix skins's shared memory services are to be used if you
want to share memory between a kernel-space real-time posix application,
and a user-space real-time posix application.

So, if this is what you want to do, enable the xenomai posix skin shared
memory services in the kernel configuration (and please upgrade to
xenomai 2.4.9.1, because some bugs in the shared memory support were
fixed recently). If you want to share memory between two user-space
applications, you can also use xenomai shared memory services, but you
are probably better of upgrading your glibc to a glibc which support
posix shared memories.

-- 
                                          Gilles



  reply	other threads:[~2009-10-16  9:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15 22:58 [Xenomai-help] shm_open returns errno 38 - function not implemented Yigal Goldberger
2009-10-16  9:00 ` Gilles Chanteperdrix [this message]
2009-10-16 12:27   ` Yigal Goldberger
2009-10-16 13:18     ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2009-10-16 16:41 Yigal Goldberger
2009-10-17 15:42 ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AD83649.7080109@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    --cc=yigal_gold@domain.hid \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.