Component execution environment

Each component has to provide an implementation of the Component interface as illustrated by the example given in Section Source code and build description.

repos/base/include/base/component.h

Interface to the component's environment

As described in Section Component creation, each component consists of a protection domain (PD session), a LOG session, a ROM session with the component's executable binary, and a CPU session, from which the main thread is created. These sessions form the environment of the component, which is represented by the Env interface class. The environment is provided to the component as argument to the Component::construct function.

Genode::Env

Parent interface

At its creation time, the only communication partner of a component is its immediate parent. The parent can be reached via interface returned by Env::parent().

Genode::Parent