From: Victor Hiairrassary <victor.hiairrassary.ml@gmail.com>
To: xenomai@xenomai.org
Subject: [Xenomai] How to use rtdm_(io/m)map_to_user
Date: Mon, 22 Apr 2013 15:10:16 +0200 [thread overview]
Message-ID: <517536B8.4080508@gmail.com> (raw)
Hello all,
This is my first post on this mailing list. I am really new with
xenomai, only
few month ago.
Currently we have a real-time application using xenomai which interacts with
hardware directly by mmaping /dev/mem.
Now, we want to write a real-time device driver that will simulate the
hardware.
For keeping the same interface than /dev/mem, a conventional linux device
driver would register an mmap file operation, but this is not possible with
rtdm.
But I have seen in xenomai api the functions : rtdm_mmap_to_user and
rtdm_iomap_to_user. Could you explain how to use them, i.e. where do we
need to
put the function call, do we need to use ioctl file operation to get mmaped
address, etc? Maybe you have an example (I have found nothing in xenomai
trunk)?
In a near future, instead of use /dev/mem, we plan to use a real-time device
driver and rtdm_iomap_to_user (only to have the same code in client
application). In this case, is it necessary and possible to call
request_mem_region() in the real-time device driver?
Best regards,
Victor Hiairrassary
next reply other threads:[~2013-04-22 13:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-22 13:10 Victor Hiairrassary [this message]
2013-04-23 11:25 ` [Xenomai] How to use rtdm_(io/m)map_to_user Gilles Chanteperdrix
2013-04-23 12:50 ` Victor Hiairrassary
2013-04-23 18:29 ` Gilles Chanteperdrix
2013-04-24 16:38 ` Victor Hiairrassary
2013-04-24 19:37 ` Gilles Chanteperdrix
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=517536B8.4080508@gmail.com \
--to=victor.hiairrassary.ml@gmail.com \
--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.