public inbox for elix@sourceware.org
 help / color / mirror / Atom feed
From: Stuart Hughes <sehughes@zentropix.com>
To: Nick Garnett <nickg@cygnus.co.uk>
Cc: elix@sourceware.cygnus.com
Subject: Re: RTLinux workshop and EL/IX press coverage on EETimes
Date: Thu, 23 Dec 1999 03:39:00 -0000	[thread overview]
Message-ID: <3861F6B9.1FA6C63A@zentropix.com> (raw)
In-Reply-To: <pok8m6bzmw.fsf@balti.cygnus.co.uk>

Nick Garnett wrote:
> 
> Stuart Hughes <sehughes@zentropix.com> writes:
> 
> > This leaves semaphores, which are available but not using the standard
> > POSIX API.  I think that it should be possible to provide a wrapper to
> > support this API.
> 
> This is what I had understood from the workshop. I guess that the work
> to get this into a POSIX API with the correct semantics should not be
> too hard.

I agree, it shouldn't be too difficult.


> > >
> > Regarding the communications between the RT kernel and regular user
> > space processes, what you say is correct, however there is also a
> > mailbox mechanism for IPC communication. Also we are looking at a
> > method of providing transparent access at the API level to the standard
> > kernel syscalls, this would mean that for realtime tasks they would then
> > be running at kernel priority rather than being true realtime tasks.  If
> > this is possible I think it is attractive, as from a programming point
> > of view you wouldn't have the extra overhead of worrying about
> > communication with the Linux system proper.
> 
> I had missed the mailbox mechanism. Being able to call standard kernel
> functions from the real time module would make use of the API a lot
> easier, although there would still be the issue of C library functions
> to consider. Also, since an RT thread would presumably cease to be
> real time while calling a kernel function, it is important to indicate
> these in the API spec.
> 

You're right, if a realtime task made a call to a Linux kernel service,
is not longer running at a realtime priority and this would need to be
made very clear.  One of the ideas we had was to reserve a group of
priorities that would be 'kernel priority', and say that any RT task
calling these services must run at kernel priority, to enforce this we
would need some checking (maybe simply forcing the need to link to a
library).  At the moment, this is only an idea, but I would love to see
some kind of transparent access to the Linux kernel from RT to make the
programmer feel that he/she is developing in a coherent environment.

As you mention, the C library is also a problem and there is a need for
(and we have been exploring) a libc_rt.a library.  Already some brave
people have been linking in some of the static libraries into their
applications (libm.a is common).  Generally this works, but at the end
of that day you need to know what you are letting yourself in for.

BTW Nick, can you let me have another e-mail address for you
(nickg@cygnus.co.uk has been bouncing).

Regards, Stuart.


  reply	other threads:[~1999-12-23  3:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-22  8:02 Paul Beskeen
1999-12-22  8:21 ` Stuart Hughes
1999-12-22  8:51 ` Nick Garnett
1999-12-22  9:20   ` Mark Johannes
1999-12-22 10:16     ` Nick Garnett
1999-12-22  9:56   ` Stuart Hughes
1999-12-22 10:26     ` Nick Garnett
1999-12-23  3:39       ` Stuart Hughes [this message]
1999-12-23  4:23         ` Nick Garnett

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=3861F6B9.1FA6C63A@zentropix.com \
    --to=sehughes@zentropix.com \
    --cc=elix@sourceware.cygnus.com \
    --cc=nickg@cygnus.co.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).