Discussion:
Child component creation
Denis Huber
2016-07-06 12:17:36 UTC
Permalink
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
Martin Stein
2016-07-06 13:48:34 UTC
Permalink
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
Post by 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
https://lists.sourceforge.net/lists/listinfo/genode-main
Norman Feske
2016-07-06 14:18:35 UTC
Permalink
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
Post by Martin Stein
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
Post by 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
--
Dr.-Ing. Norman Feske
Genode Labs

http://www.genode-labs.com · http://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Loading...