From mboxrd@z Thu Jan 1 00:00:00 1970 References: From: Philippe Gerum Message-ID: <565047BC.2010101@xenomai.org> Date: Sat, 21 Nov 2015 11:30:20 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] registry List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mathieu Rondonneau , xenomai@xenomai.org On 11/21/2015 06:53 AM, Mathieu Rondonneau wrote: > Hi, > > When a skin (lets say vxworks for example) does a > registry_add_dir("/vxworks"), where this directory gets created? > > I can see the registry as follow: > /var/run/xenomai/root/ > /var/run/xenomai/system/heaps > /var/run/xenomai/system/threads > /var/run/xenomai/system/version > > This is how I started the registry: > sudo ./sysregd --linger --daemonize --anon --root=/var/run/xenomai > > so I was expecting to be able to find a directory as follow: > /var/run/xenomai/anon//vxworks Nope. A registry spawned manually from the command line is supposed to manage a session shared between several application processes. --anon is an internal switch used by copperplate aimed at starting a private session for the current process, when it does not want to share anything with other processes. You should not use this switch directly. --root should be the path of the top directory for the session, so /var/run/xenomai won't work since this is the default root for all sessions. > >>>From my test app, I have tried to find the directory in those locations > with no luck: > /var/run/xenomai//vxworks > /var/run/xenomai/vxworks If starting the sysregd daemon is left to copperplate, that would be: /var/run/xenomai////vxworks When the session is anonymous, is "anon@". If you start the daemon manually from the command line, --root should specify the session directory, and the vxworks tree below would be located at: /vxworks > > Now I think I am missing a setup somewhere. > lib/{alchemy,psos,vxworks}/init.c illustrate this. --enable-registry should be passed to the configure script. -- Philippe.