All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] RTDM fd support.
@ 2009-10-02 15:42 Gilles Chanteperdrix
  2009-10-02 16:19 ` Jan Kiszka
  0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2009-10-02 15:42 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai core

Hi Jan,

from discussions on the mailing list, it seems that we are going to need
that unified file descriptors thing. However, since everybody wants
2.5.0 to be released ASAP, we should try to think about any changes for
this support which would break the ABI, do them now, and keep the rest
for later.

One such problem is the translation which currently exists between rtdm
file descriptors and descriptors passed to the posix skin, by adding
1024 - 128. So, I propose to fix this issue.

The idea Philippe had, and which I tend to agree to, was, in case of
open/socket/accept, to open("/dev/null"), and use an association table
somewhere to associate with the kernel-space descriptor number. Since
we are at it, this association table could in fact be the file
descriptor table, which we would put in the core skin ppd. The actual
data structure should be sparse, a linked list does not scale, so,
probably a hash would do. (I could also propose a solution based on avl
trees, but their implementation is not nearly as simple).

Additionnally, this would allow our open/socket to conform to posix
which states that open should return the lowest free file descriptor.

Should I propose a patch in that direction? Do you see any other
possible cause of ABI breakage when we migrate to an unified file
descriptors structure?

TIA,
regards.

-- 
					    Gilles.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-10-03 17:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-10-03 17:39                 ` Jan Kiszka

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.