All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Stephen Bryant <sbxenomai@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Why are open_rt, close_rt and socket_rt deprecated?
Date: Wed, 09 Jun 2010 15:32:10 +0200	[thread overview]
Message-ID: <4C0F97DA.3050501@domain.hid> (raw)
In-Reply-To: <AANLkTilEKG3zHL2p7jqkZlTqBDKXs7gXApmcaNQDxHZa@domain.hid>

Stephen Bryant wrote:
> Hi,
> 
> Since moving to Xenomai 2.5.3 I have noticed that loading one of our
> kernel drivers leads to a warning about open_rt and close_rt, stating
> that they are deprecated and the drivers require update.  I am sure
> there is a good reason for this, but I haven't found an explanation in
> the Xenomai documentation (API / The Real-Time Driver Model and First
> Applications) or on the mailing lists (help / core), or anywhere else
> (Google).

The issue has been discussed at length on the xenomai-core mailing list.

> 
> I can re-write the driver so that it doesn't use open_rt / close_rt
> without affecting the applications that use it, but I am curious as to
> why using them is a bad idea? Is it just because loading / unloading a
> driver does not take a deterministic time, and therefore should not be
> considered real-time?

If your driver defines an _rt and an _nrt callback for open and close,
what particular callback is used depends on the current mode. The
problem is that this is unreliable.

Even if you think you forced the mode you wanted before calling open or
close, this mode can change due to an asynchronous event such as a
fault, a signal, or because you are running under gdb. There was an
attempt to make this working reliably, but it was reverted after a long
discussion.

And since having primary mode only open and close syscalls is not really
necessary, it was decided to deprecate open_rt and close_rt.


-- 
					    Gilles.


      reply	other threads:[~2010-06-09 13:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 10:52 [Xenomai-help] Why are open_rt, close_rt and socket_rt deprecated? Stephen Bryant
2010-06-09 13:32 ` Gilles Chanteperdrix [this message]

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=4C0F97DA.3050501@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sbxenomai@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.