mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-01 00:45:29 +00:00
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:
parent
f80c0500af
commit
9cf677cb0a
@ -185,6 +185,19 @@ namespace Genode {
|
|||||||
_resources.ram.cap(), _resources.cpu.cap(),
|
_resources.ram.cap(), _resources.cpu.cap(),
|
||||||
_resources.rm.cap(), &entrypoint, &slave_policy)
|
_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(); }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user