From: Jan Kiszka <jan.kiszka@domain.hid>
To: trem <tremyfr@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] very simple example for rtdm
Date: Sun, 29 Apr 2007 10:30:24 +0200 [thread overview]
Message-ID: <463457A0.7030008@domain.hid> (raw)
In-Reply-To: <f10l2a$rdk$1@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]
trem wrote:
> Hi
>
> I've written a very simple example for rtdm. And I would be pleased to
> get a feedback about it. You can found it here :
>
> http://zarb.org/users/svn/trem/trem/kernel/xenomai/rtdm/
>
Looks good and (almost) clean. A few remarks and some suggestion:
o Use kernel coding style for the driver (linux/scripts/Lindent +
manual tweaking)
o Put your driver under RTDM_CLASS_EXPERIMENTAL, TESTING is for
benchmarks and regression test drivers. And you don't need
rttesting.h.
o As RTDM is mainly about "RT", why not switching to .read_rt and
.write_rt? That means of course creating a shadow thread in
read_simple_rtdm.
o Once you are real-time with read/write, you could demonstrate
synchronisation. One FAQ is "How do I wait with my application on
something inside a driver?" You could do rtdm_sem_up on write and
rtdm_sem_[timed]down on read.
Alternatively:
o What about creating a small series of RTDM examples, consisting of
two demos so far: the first one a reduced version of you current
code, just showing device registration and handler invocation, the
second one about read/write and synchronisation. And if you feel like
doing more, one could certainly continue this series with further
aspects...
Are you interested that we merge your example(s) into the Xenomai repos
(examples/rtdm/driver-api)? I would welcome this and support your effort!
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-04-29 8:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-28 23:23 [Xenomai-help] very simple example for rtdm trem
2007-04-29 8:30 ` Jan Kiszka [this message]
2007-04-29 15:07 ` trem
[not found] ` <4634B1DA.4040705@domain.hid>
2007-04-29 17:22 ` Jan Kiszka
2007-04-29 17:57 ` 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=463457A0.7030008@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=tremyfr@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.