Problem with setting up namespaces

Björn Döbel doebel at os.inf.tu-dresden.de
Thu Jul 18 18:53:37 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Johannes,

>> Well, I want to provide capabilities for an application by
>> putting them into a local namespace. Since our system changes
>> dynamically I want to add capabilities at runtime by registering
>> them to the corresponding namespace.

please find attached the clntsrv example adapted to use namespaces.
The general approach is:

1) In the Lua config create an empty namespace and make it accessible
   to your application(s). Note that the example also uses different
   access rights for client and server.

2) On the server side I use the object registry's register_object()
   function, which internally creates an IPC gate and binds the calling
   thread to it. Then I use the namespace's register_object() call to
   make the new channel externally visible.

3) In the client I query for the object name. This call blocks until
   the server has registered the new channel.

Apart from these steps, client and server implementation are identical
to the original example.

Regarding your approach of putting a channel into the namespace within
the Lua config file: This does not work for me. We are still trying to
figure out, why. It's probably indeed be related to the downgrading as
suggested by Christian.

Bjoern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlHoHZAACgkQP5ijxgQLUNlt0wCfX3qShBjEXdXvaXGmVtbk5IgG
Ys8An2vS/Uqj5qrFyKVxFAvGBB0BgtE0
=0Qez
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: client.cc
Type: text/x-c++src
Size: 2702 bytes
Desc: not available
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20130718/4ee414d8/attachment.cc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20130718/4ee414d8/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ns.cfg
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20130718/4ee414d8/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.cc
Type: text/x-c++src
Size: 2698 bytes
Desc: not available
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20130718/4ee414d8/attachment-0001.cc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shared.h
Type: text/x-chdr
Size: 421 bytes
Desc: not available
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20130718/4ee414d8/attachment.h>


More information about the l4-hackers mailing list