From: "M. Koehrer" <mathias_koehrer@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] RTDM and user space hardware drivers
Date: Mon, 12 Mar 2007 11:01:28 +0100 (CET) [thread overview]
Message-ID: <17648569.1173693688643.JavaMail.ngmail@domain.hid> (raw)
Hi everybody,
the RTDM API is really very good as API for drivers.
I have a real time (Xenomai) application in user space that has to access PCI boards.
The "classical" approach is now to use a kernel driver and to use RTDM as interface
between the user space application an the kernel space driver.
However, for performance issues, I prefer to write a pure user mode driver.
As the memory of the PCI board can be accesses from user space (using /dev/mem)
I want to write a pure user space driver as this seems to me more efficient (and easier to debug) than
a kernel driver.
Also, only one application is accessing the driver at a time, I can link the driver directly to my application.
My questions are now:
1. Is it possible to use the RTDM API also for pure user space drivers?
2. Is there any experience concerning the performance of a user space driver versus a kernel space
driver?
In my use case, I have to write and read about 60 byte (each direction) of (block) data to/from the PCI I/O system.
Thanks for any ideas or hints on that!
Regards
Mathias
--
Mathias Koehrer
mathias_koehrer@domain.hid
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur 39,85 inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
next reply other threads:[~2007-03-12 10:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-12 10:01 M. Koehrer [this message]
2007-03-12 11:33 ` [Xenomai-help] RTDM and user space hardware drivers Stéphane ANCELOT
2007-03-18 10:34 ` Jan Kiszka
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=17648569.1173693688643.JavaMail.ngmail@domain.hid \
--to=mathias_koehrer@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.