On Wed, 2021-08-18 at 13:41 +0200, Jan Kiszka wrote:
> On 18.08.21 13:24, Florian Bezdeka wrote:
> > Hi,
> > 
> > this is another try to make registered mqueues visible. This time by
> > exporting them to the procfs, namely to
> > /proc/xenomai/registry/mqueue/<name>
> > 
> > Let me know what you think... 
> > 
> > I had to rework the existing export machinery a bit to get rid of the so
> > called "root" directory which is normally created. See patch
> > descriptions for details.
> > 
> > Best regards,
> > Florian
> > 
> > Florian Bezdeka (4):
> >   cobalt/registry: Make the root directory for proc exports optional
> >   cobalt/registry: Share xnregistry_vfreg_ops with other compile units
> >   cobalt/registry: Initialize refcnt of exported virtual proc files
> >   cobalt/mqueue: Export created mqueues to procfs
> > 
> >  include/cobalt/kernel/registry.h |  2 ++
> >  kernel/cobalt/posix/mqueue.c     | 35 +++++++++++++++++++++++++++++++-
> >  kernel/cobalt/registry.c         | 13 ++++++------
> >  3 files changed, 43 insertions(+), 7 deletions(-)
> > 
> 
> Will have a look.
> 
> We likely then also want the same for pshared semaphores, right?
> Anything else that could get a name (which may collide or become orphaned)?

Yes, to be complete we should do the same for shared semaphores. 

The previously submitted "dump patch" handled all registered types
(mqueue, semaphore, ...) the same way. But there was no type
information available. The registry holds the keys only.

> 
> Jan
> 

Reply via email to