ambiguous services of children

Norman Feske norman.feske at ...1...
Tue Sep 23 17:01:15 CEST 2014


Hi David,

> in my setup, i have a parent process with multiple children with IDs,
> lets say the are named child_1 to child_3.
> 
> the parent recievces messages with an ID and should forward it to the
> child with the corresponding ID.  Therefore all children announce the
> same service, lets say "child_communcation", to the parent.
> 
> In order to avoid ambiguities, the parent process would have to
> reconfigure its route every time a message arrives. that means if
> message with ID 3 arrives, the route for the service
> "child_communication" must lead to child_3.
> 
> this solution seems odd to me, am i missing a mechanism in genode that
> allows a parent to communicate with its children directly, when they all
> announced the same service? 

admittedly, I struggle a bit with following your email. To clarify, with
"parent process" you refer to a program that you created, or are you
referring to an instance of init?

If the former is the case (what I'm expecting), how do you run the child
processes? Are you using the Genode::Child class (from 'base/child.h')
or the Genode::Slave class (from 'os/slave.h')?

>From where does the parent receives messages? From any of its children
or some other process?

Just to allow me to get a better grasp on your problem, could you
outline the scenario in slightly more general terms?

Cheers
Norman

-- 
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




More information about the users mailing list