From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4AF20D2B.30508@domain.hid> Date: Thu, 05 Nov 2009 00:24:27 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Sharing Semaphores in Kernel and User Space List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jonathan Haws Cc: "xenomai@xenomai.org" Jonathan Haws wrote: > All, > > I am writing a driver that needs to wake up a user space thread on a > hardware interrupt. I am reading about the Xenomai APIs semaphores > and want to know if I create a semaphore in my kernel module with a > given name using rt_sem_create, can I call rt_sem_bind in user space > to bind to that same semaphore? > > I am sure hoping the answer is yes! The answer is yes, but... this programming model is deprecated. You should be implementing a driver using the RTDM API, as you would do with Linux. -- Gilles.