From: Jan Kiszka <jan.kiszka@domain.hid>
To: Yeoh Chun Yeow <yeohchunyeow@domain.hid>
Cc: "Xenomai-help@domain.hid" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Linux Driver to Real Time Driver
Date: Thu, 02 Aug 2007 12:05:44 +0200 [thread overview]
Message-ID: <46B1AC78.30109@domain.hid> (raw)
In-Reply-To: <2862c2c80708020225h5acc39axcdf126dd8200259b@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1432 bytes --]
Yeoh Chun Yeow wrote:
> Dear all,
>
> Is there any source of references for migrating the Linux Driver to Real
> Time Driver?
>
> Any hints and tips?
There is no magic instruction list available for this step. Basically,
you can consider this process looking like this:
1. Analyse the design of the existing Linux driver. Is it RT friendly?
Means: Are low-latency input/output paths feasible? Can I control
the priority of requests or are there sources of potential priority
inversions with other users of the system or the device? Do I have
to handle concurrent device usages, and how will those users
influence each other?
2. Convert to RTDM API. If the design didn't change a lot, this can be
a fairly mechanical step. General understanding of both the original
Linux services (=> see e.g. "Linux Device Drivers") and RTDM ones
(API docs) is required.
3. Test and evaluate the driver properties. Ideally, post it for
Xenomai inclusion (in that case, posting design considerations and
partial ports much earlier can be very helpful for you!).
Step 1 is the main reason why there is no simple "How to port a Linux
driver to RTDM?". It can be quite different from driver to driver.
Still, patterns exist, and you may have a look at existing drivers in
Xenomai (including the examples repos) and external projects (see links
on xenomai.org).
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-08-02 10:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-02 9:25 [Xenomai-help] Linux Driver to Real Time Driver Yeoh Chun Yeow
2007-08-02 10:05 ` Jan Kiszka [this message]
2007-08-02 10:12 ` Gilles Chanteperdrix
2007-08-02 15:35 ` 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=46B1AC78.30109@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
--cc=yeohchunyeow@domain.hid \
/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.