From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DA6A36D.6070908@domain.hid> Date: Thu, 14 Apr 2011 09:34:05 +0200 From: Jan Kiszka MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] FW: rtdm_iomap_to_user() I-pipe error List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Asier Tamayo Cc: xenomai@xenomai.org On 2011-04-14 08:14, Asier Tamayo wrote: > > Hello, > > I'm porting a PCI driver to a RTDM. Until now, I have successfully done most of the job. > > I'm using Xenomai version 2.4.7 and Linux 2.6.27, from the ELinOS 5.0 distribution. > > My problem appears with the rtdm_iomap_to_user() function. I want to allow a RT task to access the PCI memory directly, via mmap. As the RTDM has no mmap() function, I'm trying to use rtdm_iomap_to_user, but it always gives me the following error: > > I-pipe: Detected illicit call from domain 'Xenomai' > into a service reserved for domain 'Linux' and below. This is also documented: rtdm_iomap_to_user is not supposed to be called from RT task context. This means your driver should only call it from handlers registered for *_nrt entry points. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux