From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3f7e4e30c68612bf269e955922cf6f82.squirrel@domain.hid> In-Reply-To: References: Date: Thu, 20 Nov 2008 13:48:31 +0100 (CET) From: "Gilles Chanteperdrix" MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [Xenomai-help] Interprocess Mutex List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Adrian Boeing Cc: xenomai@xenomai.org 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.