All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: Xenomai core <Xenomai-core@domain.hid>
Subject: Re: [Xenomai-core] RTDM fd support.
Date: Fri, 02 Oct 2009 22:45:50 +0200	[thread overview]
Message-ID: <4AC6667E.10704@domain.hid> (raw)
In-Reply-To: <4AC66211.3030204@domain.hid>

Jan Kiszka wrote:
> Then please summarize again what you want change from the user's POV (fd
> range and arbitration, I guess, but also their scope?)

Basically, when going from user-space to kernel-space, instead of a
simple translation, currently done with an addition in user-space for
most services, in kernel-space for select, there is a hash lookup, done
in kernel-space.

 and what impact
> that will have on the library and kernel ABIs.

The impact on the ABI is that we no longer do the translation using
addition/substraction. If we broke all at once in version 2.5.x, we
could not run a 2.5.x-1 user-space support that does the
addition/substraction, with a 2.5.x kernel-space support which has the
unified file descriptors abstraction.

 What would be part of
> step 1, what of step 2 later in 2.5.x?

Step 1 is adding the fdtable, use it in the rtdm and posix skin before
returning a fd to user-space, and when getting an fd from user-space.
Remove the translation by addition/substraction in the rtdm part of
libpthread_rt.

Step 2 is replacing the rtdm and posix registries with an unified fd
support based on the fdtable, the real kernel-space file descriptors (I
mean, the one which really belong to a kernel-space app) would be
implemented using a global fdtable. Duplicate the fdtable at fork, etc...

-- 
					    Gilles.


  reply	other threads:[~2009-10-02 20:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02 15:42 [Xenomai-core] RTDM fd support Gilles Chanteperdrix
2009-10-02 16:19 ` Jan Kiszka
2009-10-02 16:33   ` Gilles Chanteperdrix
2009-10-02 19:16     ` Jan Kiszka
2009-10-02 20:04       ` Gilles Chanteperdrix
2009-10-02 20:15         ` Jan Kiszka
2009-10-02 20:18           ` Gilles Chanteperdrix
2009-10-02 20:26             ` Jan Kiszka
2009-10-02 20:45               ` Gilles Chanteperdrix [this message]
2009-10-03 17:39                 ` 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=4AC6667E.10704@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Xenomai-core@domain.hid \
    --cc=jan.kiszka@domain.hid \
    /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.