os: Add resource balancing-support to 'Slave'

In order to be able to dynamically balance resources of slaves, we need
to provide an accessor to the slave's RAM session and a way to issue
yield requests.
This commit is contained in:
Norman Feske 2013-10-05 15:19:37 +02:00
parent f80c0500af
commit 9cf677cb0a

View File

@ -185,6 +185,19 @@ namespace Genode {
_resources.ram.cap(), _resources.cpu.cap(),
_resources.rm.cap(), &entrypoint, &slave_policy)
{ }
Genode::Ram_connection &ram() { return _resources.ram; }
/***************************************
** Wrappers of the 'Child' interface **
***************************************/
void yield(Genode::Parent::Resource_args const &args) {
_child.yield(args); }
void notify_resource_avail() const {
_child.notify_resource_avail(); }
};
}