Message-ID: Date: Fri, 28 Mar 2008 16:44:51 +0100 From: "Bosko Radivojevic" In-Reply-To: <2ff1a98a0803280834t38a195eey3fce0bb0c5ef9831@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2ff1a98a0803280605j43811112y1c29e61edd0bc53c@domain.hid> <2ff1a98a0803280654u35f2da13t16a145ac22c1714f@domain.hid> <2ff1a98a0803280655r665412f5qfa8ada46f630536a@domain.hid> <2ff1a98a0803280834t38a195eey3fce0bb0c5ef9831@domain.hid> Subject: Re: [Xenomai-help] Using shared memory, Xenomai 2.4.2 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix , xenomai-help Or, better to say, why am I getting -EWOULDBLOCK when trying to bind to existing heap object created in kernel thread wih H_SHARED flag? On 3/28/08, Gilles Chanteperdrix wrote: > On Fri, Mar 28, 2008 at 4:28 PM, Bosko Radivojevic > wrote: > > Ok, I'll try that. But, is there something wrong with my code/approach > > or is it some kind of arm-specific bug? > > Yes, as I said in my first answer, you are missing the O_CREAT flag in > the call to shm_open. > > The arm-specific bug will happen later (once the shared memory is > mapped). Because the kernel-space and user-space will get different > caches for the same memory area. The solution to this issue is to map > the heap without cache, but to get this, you need modifications of > Xenomai that only exist on my computer for now. So, if you are > interested, I will send a patch. > > -- > Gilles > -- Sent from Gmail for mobile | mobile.google.com