All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Nilanjan Roychowdhury <Nilanjan.Roychowdhury@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] driver migration
Date: Thu, 14 Sep 2006 12:40:57 +0200	[thread overview]
Message-ID: <450931B9.1040703@domain.hid> (raw)
In-Reply-To: <9D98C51005D80D43A19A3DF329A61D69515626@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1403 bytes --]

Nilanjan Roychowdhury wrote:
> Jan,
> I have a question on RTDM. Lets say I have chosen Xenomai as the FIRST
> platform to develop my driver with a plan to move my driver to an RTOS
> in future. And lets say this RTOS does not have an IO system. Does not
> understand any /dev/XXX entry.

Neither had original Xenomai or RTAI in hard-RT mode. To define such
basic I/O system, RTDM was invented. It can (and does under those two
systems) provide a simple self-contained hard-RT I/O subsystem to build
drivers upon, but it would also work on systems where this is already
available (PREEMPT_RT will likely be such a candidate).

> In that RTOS you have tasks waiting for
> events and you post the events from an ISR ( lets say by a message
> queue).
> 
> In that case, do you suggest I go for RTDM. Or I just try to mimic the
> same RTOS behavior by RT interrupts and rt tasks ??

It's hard to say without knowing that RTOS, likely also its degree of
extensibility. But I could imagine that porting RTDM (or the parts you
actually use) over your RTOS would simplify your life when having to
maintain drivers for both systems. RTDM first of all defines abstract
RTOS services for drivers and a communication interface between drivers
and applications, both should be mappable on other systems as well.
Again, that's speculation, the devil can always be in the detail.

Jan



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2006-09-14 10:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14  9:52 [Xenomai-help] driver migration Nilanjan Roychowdhury
2006-09-14 10:40 ` Jan Kiszka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-09-14  9:37 Nilanjan Roychowdhury
2006-09-14  9:40 ` Jan Kiszka
2006-09-14  9:10 Nilanjan Roychowdhury
2006-09-14  9:27 ` 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=450931B9.1040703@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=Nilanjan.Roychowdhury@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.