* [Xenomai-help] Why are open_rt, close_rt and socket_rt deprecated?
@ 2010-06-09 10:52 Stephen Bryant
2010-06-09 13:32 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Bryant @ 2010-06-09 10:52 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 744 bytes --]
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).
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?
Steve
[-- Attachment #2: Type: text/html, Size: 924 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] Why are open_rt, close_rt and socket_rt deprecated?
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
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2010-06-09 13:32 UTC (permalink / raw)
To: Stephen Bryant; +Cc: xenomai
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-09 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.