* [Xenomai-help] Linux Driver to Real Time Driver
@ 2007-08-02 9:25 Yeoh Chun Yeow
2007-08-02 10:05 ` Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: Yeoh Chun Yeow @ 2007-08-02 9:25 UTC (permalink / raw)
To: Xenomai-help@domain.hid
[-- Attachment #1: Type: text/plain, Size: 161 bytes --]
Dear all,
Is there any source of references for migrating the Linux Driver to Real
Time Driver?
Any hints and tips?
Please advice. Thanks
regards,
chun yeow
[-- Attachment #2: Type: text/html, Size: 192 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] Linux Driver to Real Time Driver
2007-08-02 9:25 [Xenomai-help] Linux Driver to Real Time Driver Yeoh Chun Yeow
@ 2007-08-02 10:05 ` Jan Kiszka
2007-08-02 10:12 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2007-08-02 10:05 UTC (permalink / raw)
To: Yeoh Chun Yeow; +Cc: Xenomai-help@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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] Linux Driver to Real Time Driver
2007-08-02 10:05 ` Jan Kiszka
@ 2007-08-02 10:12 ` Gilles Chanteperdrix
2007-08-02 15:35 ` Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2007-08-02 10:12 UTC (permalink / raw)
To: Jan Kiszka; +Cc: Xenomai-help@domain.hid
On 8/2/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
> 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.
Maybe adding a "rosetta stone" in RTDM API docs could help this
process ? A bit like this:
http://www.xenomai.org/documentation/trunk/html/api/group__posix.html
--
Gilles Chanteperdrix
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] Linux Driver to Real Time Driver
2007-08-02 10:12 ` Gilles Chanteperdrix
@ 2007-08-02 15:35 ` Jan Kiszka
0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2007-08-02 15:35 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: Xenomai-help@domain.hid
[-- Attachment #1: Type: text/plain, Size: 634 bytes --]
Gilles Chanteperdrix wrote:
> On 8/2/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>> 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.
>
> Maybe adding a "rosetta stone" in RTDM API docs could help this
> process ? A bit like this:
> http://www.xenomai.org/documentation/trunk/html/api/group__posix.html
>
Good idea! Currently just lacks someone to work this our thoroughly.
Anyway, will be kept in mind.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-02 15:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 9:25 [Xenomai-help] Linux Driver to Real Time Driver Yeoh Chun Yeow
2007-08-02 10:05 ` Jan Kiszka
2007-08-02 10:12 ` Gilles Chanteperdrix
2007-08-02 15:35 ` Jan Kiszka
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.