All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gilles Chanteperdrix" <gilles.chanteperdrix@xenomai.org>
To: Adrian Boeing <me@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Interprocess Mutex
Date: Thu, 20 Nov 2008 13:48:31 +0100 (CET)	[thread overview]
Message-ID: <3f7e4e30c68612bf269e955922cf6f82.squirrel@domain.hid> (raw)
In-Reply-To: <c024fefc0811200055r309fbedar73531c856f27565a@domain.hid>


Adrian Boeing wrote:
> Hi,
>
> Is it possible to create an inter-process mutex between kernel space and
> user space?
> If so, how is this done with the native API?
>
> The system has one real-time kernel process which communicates with other
> processes via shared memory.

See rt_mutex_bind:
http://www.xenomai.org/documentation/branches/v2.4.x/html/api/group__mutex.html#g39b3a0e7f6f6ee41b8068ed59e25d1d1
or, for the posix skin, pthread_mutexattr_setpshared:
http://www.xenomai.org/documentation/branches/v2.4.x/html/api/group__posix__mutex.html#g73bd8697b91e0ee9a63c30052ac9f72f
Note that for sharing a mutex with the posix skin, the pthread_mutex_t
structure needs to reside on a shared memory.

-- 
                    Gilles.



  reply	other threads:[~2008-11-20 12:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-20  8:55 [Xenomai-help] Interprocess Mutex Adrian Boeing
2008-11-20 12:48 ` Gilles Chanteperdrix [this message]
2008-11-21  0:03   ` Adrian Boeing
2008-11-21  2:43     ` Philippe Gerum

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=3f7e4e30c68612bf269e955922cf6f82.squirrel@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=me@domain.hid \
    --cc=xenomai@xenomai.org \
    /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.