registry
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
Quoted 1 line
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
Quoted 11 lines · Mathieu Rondonneau
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
Quoted 5 lines
This is how I started the registry:
sudo ./sysregd --linger --daemonize --anon --root=/var/run/xenomaiso 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.
Quoted 5 lines
Quoted 2 lines
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
Quoted 3 lines
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.
Signature · 1 line
Philippe.
Quoted 18 lines · Philippe Gerum
Quoted 11 lines · Mathieu Rondonneau
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/versionQuoted 5 lines
This is how I started the registry:
sudo ./sysregd --linger --daemonize --anon --root=/var/run/xenomaiso I was expecting to be able to find a directory as follow:
/var/run/xenomai/anon/<pid>/vxworks
Quoted 9 lines
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/xenomaiwon'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.
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
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/vxworksIf starting the sysregd daemon is left to copperplate, that would be:
/var/run/xenomai/<user>/<session-label>/<pid>/vxworks
Quoted 8 lines
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
Quoted 7 lines
Quoted 3 lines
Now I think I am missing a setup somewhere.
lib/{alchemy,psos,vxworks}/init.cillustrate this. --enable-registry should be passed to the configure script.
I have this flag set already.
Quoted 52 lines · Mathieu Rondonneau
Quoted 18 lines · Philippe Gerum
Quoted 11 lines · Mathieu Rondonneau
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/versionQuoted 5 lines
This is how I started the registry:
sudo ./sysregd --linger --daemonize --anon --root=/var/run/xenomaiso I was expecting to be able to find a directory as follow:
/var/run/xenomai/anon/<pid>/vxworksQuoted 9 lines
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/xenomaiwon'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.
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
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/vxworksIf starting the sysregd daemon is left to copperplate, that would be:
/var/run/xenomai/<user>/<session-label>/<pid>/vxworks
Quoted 8 lines
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>/vxworksQuoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Now I think I am missing a setup somewhere.
lib/{alchemy,psos,vxworks}/init.cillustrate 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