Hello,
I am looking for information on how to develop a parent component which creates new children (just the basics).
I read the first 3 chapters of the Genode book which gave me the theoretical information, but I could not find the practical information/tutorials on how to create a child component. Is there a good example in the source code of genode?
Best regards Denis
Hi Denis,
You might have a look at the init component [1]. It creates children according to a given configuration. An example configuration can be found in (almost) all run scripts as init is the only child of Genodes core component and in this role responsible for starting all other components. Just look out for the call to 'install_config' in a run script (a good example is the timer test [2]).
Cheers, Martin
[1] os/src/init os/include/init
[2] os/run/timer.run
Am 06.07.2016 um 14:17 schrieb Denis Huber:
Hello,
I am looking for information on how to develop a parent component which creates new children (just the basics).
I read the first 3 chapters of the Genode book which gave me the theoretical information, but I could not find the practical information/tutorials on how to create a child component. Is there a good example in the source code of genode?
Best regards Denis
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Hello Denis,
welcome to the mailing list!
In addition to Martin's recommendation, you can also find another (much simpler) example at 'os/src/test/fault_detection/' and the accompanied run script at 'os/run/fault_detection.run'. The program starts a child component and responds to an invalid memory access by the child. In contrast to init, you can see the mechanics of creating the child in a single source file.
Cheers Norman
On 06.07.2016 15:48, Martin Stein wrote:
Hi Denis,
You might have a look at the init component [1]. It creates children according to a given configuration. An example configuration can be found in (almost) all run scripts as init is the only child of Genodes core component and in this role responsible for starting all other components. Just look out for the call to 'install_config' in a run script (a good example is the timer test [2]).
Cheers, Martin
[1] os/src/init os/include/init
[2] os/run/timer.run
Am 06.07.2016 um 14:17 schrieb Denis Huber:
Hello,
I am looking for information on how to develop a parent component which creates new children (just the basics).
I read the first 3 chapters of the Genode book which gave me the theoretical information, but I could not find the practical information/tutorials on how to create a child component. Is there a good example in the source code of genode?
Best regards Denis