All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Asier Tamayo <asier.tamayo@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] FW: rtdm_iomap_to_user() I-pipe error
Date: Thu, 14 Apr 2011 09:34:05 +0200	[thread overview]
Message-ID: <4DA6A36D.6070908@domain.hid> (raw)
In-Reply-To: <DFFBF4EB468A894AB1474ED220F05AF60134C17D@srv-dc.ona-electroerosion.com>

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


  reply	other threads:[~2011-04-14  7:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-14  6:14 [Xenomai-help] FW: rtdm_iomap_to_user() I-pipe error Asier Tamayo
2011-04-14  7:34 ` Jan Kiszka [this message]
2011-04-14  9:38   ` Asier Tamayo
2011-04-26 10:05     ` Asier Tamayo
2011-04-26 11:15       ` Gilles Chanteperdrix
2011-04-27  7:05         ` Asier Tamayo
2011-04-27  7:42           ` Gilles Chanteperdrix
2011-04-27 17:36             ` Gilles Chanteperdrix
2011-04-28  8:54               ` Asier Tamayo

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=4DA6A36D.6070908@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=asier.tamayo@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.