Hi all,
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?
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?
In l4 examples of 'ipc' I only saw solution with threads, is this the correct way to initiate new processes?
- Alex
-----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@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)
l4-hackers@os.inf.tu-dresden.de