* [Xenomai] registry
@ 2015-11-21 5:53 Mathieu Rondonneau
2015-11-21 10:30 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Rondonneau @ 2015-11-21 5:53 UTC (permalink / raw)
To: xenomai
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/<pid>/vxworks
>From my test app, I have tried to find the directory in those locations
with no luck:
/var/run/xenomai/<pid>/vxworks
/var/run/xenomai/vxworks
Now I think I am missing a setup somewhere.
Thanks for any pointers,
Regards,
-Mathieu
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Xenomai] registry 2015-11-21 5:53 [Xenomai] registry Mathieu Rondonneau @ 2015-11-21 10:30 ` Philippe Gerum 2015-11-21 16:30 ` Mathieu Rondonneau 0 siblings, 1 reply; 4+ messages in thread From: Philippe Gerum @ 2015-11-21 10:30 UTC (permalink / raw) To: Mathieu Rondonneau, xenomai 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/<pid>/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/<pid>/vxworks > /var/run/xenomai/vxworks If starting the sysregd daemon is left to copperplate, that would be: /var/run/xenomai/<user>/<session-label>/<pid>/vxworks When the session is anonymous, <session-label> is "anon@<pid>". 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: <session-top-dir>/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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] registry 2015-11-21 10:30 ` Philippe Gerum @ 2015-11-21 16:30 ` Mathieu Rondonneau 2015-11-22 4:49 ` Mathieu Rondonneau 0 siblings, 1 reply; 4+ messages in thread From: Mathieu Rondonneau @ 2015-11-21 16:30 UTC (permalink / raw) To: Philippe Gerum, xenomai On 15-11-21 02:30 AM, Philippe Gerum wrote: > 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/<pid>/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. > Thanks Philippe, it looks like I don't need to start sysregd manually then. >> >> >From my test app, I have tried to find the directory in those locations >> with no luck: >> /var/run/xenomai/<pid>/vxworks >> /var/run/xenomai/vxworks > > If starting the sysregd daemon is left to copperplate, that would be: > > /var/run/xenomai/<user>/<session-label>/<pid>/vxworks > > When the session is anonymous, <session-label> is "anon@<pid>". > > 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: > > <session-top-dir>/vxworks > it looks like the path I need to look for is: /var/run/xenomai/<user>/<session-label>/<pid>/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. > I have this flag set already. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] registry 2015-11-21 16:30 ` Mathieu Rondonneau @ 2015-11-22 4:49 ` Mathieu Rondonneau 0 siblings, 0 replies; 4+ messages in thread From: Mathieu Rondonneau @ 2015-11-22 4:49 UTC (permalink / raw) To: Philippe Gerum, xenomai On 15-11-21 08:30 AM, Mathieu Rondonneau wrote: > On 15-11-21 02:30 AM, Philippe Gerum wrote: >> 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/<pid>/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. >> > Thanks Philippe, it looks like I don't need to start sysregd manually then. > >>> >>> >From my test app, I have tried to find the directory in those locations >>> with no luck: >>> /var/run/xenomai/<pid>/vxworks >>> /var/run/xenomai/vxworks >> >> If starting the sysregd daemon is left to copperplate, that would be: >> >> /var/run/xenomai/<user>/<session-label>/<pid>/vxworks >> >> When the session is anonymous, <session-label> is "anon@<pid>". >> >> 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: >> >> <session-top-dir>/vxworks >> > it looks like the path I need to look for is: > /var/run/xenomai/<user>/<session-label>/<pid>/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. >> > I have this flag set already. > Just confirming that this is now working, my app can now access the registry created by the skin (tasks, queues, semaphores). Thanks Philippe, -Mathieu ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-22 4:49 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-11-21 5:53 [Xenomai] registry Mathieu Rondonneau 2015-11-21 10:30 ` Philippe Gerum 2015-11-21 16:30 ` Mathieu Rondonneau 2015-11-22 4:49 ` Mathieu Rondonneau
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.