question about process generation

Björn Döbel doebel at os.inf.tu-dresden.de
Fri Nov 8 09:58:36 CET 2013


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

Hi Alexander,

> I like to implement two processes(if this is the correct word for 
> l4). I want to implement two elf binaries, each of them have a
> main function.
> 
> These two processes should communicate over IPC. Is this possible?

Of course!

> I have in my modules.list: entry krusty kernel fiasco -serial_esc 
> roottask moe rom/krusty.cfg module foo ...
> 
> so my init process is 'moe' which should start one than more
> processes, how can I do that if it possible?

Actually you are passing an init file written in Lua to moe. Moe then
starts ned, the init interpreter, which in turn sets up your system.
The trick for running more than one process (which we call tasks btw)
is to specify that inside the Lua file.

> In l4 examples of 'ipc' I only saw solution with threads, is this
> the correct way to initiate new processes?

The example you are looking for is in l4/pkg/examples/clntsrv -- here
two tasks are launched that communicate through a dedicated channel.
There is also an example Lua file to launch this setup.

Cheers,
Bjoern
- -- 
Dipl.-Inf. Bjoern Doebel    Mail:  doebel at tudos.org
TU Dresden, OS Chair        Phone: +49 351 463 38 799
Noethnitzer Str. 46         Fax:   +49 351 463 38 284
01187 Dresden, Germany      WWW:   http://www.tudos.org/~doebel
- --
"When the seagulls follow the trawler, it's because they think
 sardines will be thrown into the sea." (Eric Cantona)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlJ8p7wACgkQP5ijxgQLUNlxXACfQ78C/VpnGs8aHcrOdcOYk33A
XQ0AnRp0SVVybU3iWlL14EgWZjcYEZln
=nD9r
-----END PGP SIGNATURE-----




More information about the l4-hackers mailing list