All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Reworking file descriptors
@ 2013-12-15 20:22 Gilles Chanteperdrix
  2013-12-15 20:58 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2013-12-15 20:22 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai


Hi Jan,

I have starting reworking the posix skin on forge to use the cobalt
registry instead of the ad-hoc registry it currently uses. The next step
for that work is to convert the file descriptors, offering a unified
access with select to posix skin message queues and rtdm drivers, and
working correctly with fork().

I have a clear idea on how I would do it for the posix message queues
only. Just as I did for the semaphores, I would implement a hash table,
where the file descriptor structures are indexed by the user-space file
descriptor (obtained with open(/dev/null) for instance, so that xenomai
file descriptors follow the posix specification, and use the smallest
available descriptor), and the mm structure.

However, RTDM allows opening file descriptors in kernel-space, so it
would break my implementation, because we can use NULL or &init_mm as
the mm key, but what would we use as the file descriptor index?

Any idea is welcome.
Regards.

-- 
                                                                Gilles.


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

end of thread, other threads:[~2013-12-16 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-15 20:22 [Xenomai] Reworking file descriptors Gilles Chanteperdrix
2013-12-15 20:58 ` Gilles Chanteperdrix
2013-12-16 15:07   ` Jan Kiszka
2013-12-16 15:17     ` Gilles Chanteperdrix
2013-12-16 15:29       ` 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.