mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-14 21:28:16 +00:00
base: assign allocator and quota to platform pd
Enable platform specific allocations and ram quota accounting for protection domains. Needed to allocate object identity references in the base-hw kernel when delegating capabilities via IPC. Moreover, it can be used to account translation table entries in the future. Ref #1443
This commit is contained in:
committed by
Christian Helmuth
parent
d9d65aa86b
commit
358380046c
@ -15,6 +15,7 @@
|
||||
#define _CORE__INCLUDE__PD_SESSION_COMPONENT_H_
|
||||
|
||||
/* Genode includes */
|
||||
#include <base/allocator.h>
|
||||
#include <base/rpc_server.h>
|
||||
#include <linux_pd_session/linux_pd_session.h>
|
||||
|
||||
@ -43,9 +44,12 @@ namespace Genode {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* \param ds_ep entrypoint where the dataspaces are managed
|
||||
* \param ds_ep entrypoint where the dataspaces are managed
|
||||
* \param md_alloc meta-data allocator
|
||||
* \param args additional session arguments
|
||||
*/
|
||||
Pd_session_component(Rpc_entrypoint *ds_ep, const char *args);
|
||||
Pd_session_component(Rpc_entrypoint *ds_ep, Allocator * md_alloc,
|
||||
const char *args);
|
||||
|
||||
~Pd_session_component();
|
||||
|
||||
|
@ -305,7 +305,9 @@ static const char *get_env(const char *key)
|
||||
** PD session interface **
|
||||
**************************/
|
||||
|
||||
Pd_session_component::Pd_session_component(Rpc_entrypoint *ep, const char *args)
|
||||
Pd_session_component::Pd_session_component(Rpc_entrypoint * ep,
|
||||
Allocator * md_alloc,
|
||||
const char * args)
|
||||
:
|
||||
_pid(0), _uid(0), _gid(0), _ds_ep(ep)
|
||||
{
|
||||
|
Reference in New Issue
Block a user