All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Mathieu Rondonneau <mathieu_rondonneau@hotmail.com>, xenomai@xenomai.org
Subject: Re: [Xenomai] registry
Date: Sat, 21 Nov 2015 11:30:20 +0100	[thread overview]
Message-ID: <565047BC.2010101@xenomai.org> (raw)
In-Reply-To: <BLU436-SMTP5068DD4CFCAD34C1CC29DDF0190@phx.gbl>

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.


  reply	other threads:[~2015-11-21 10:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-21  5:53 [Xenomai] registry Mathieu Rondonneau
2015-11-21 10:30 ` Philippe Gerum [this message]
2015-11-21 16:30   ` Mathieu Rondonneau
2015-11-22  4:49     ` Mathieu Rondonneau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=565047BC.2010101@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=mathieu_rondonneau@hotmail.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.