mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
Annotate session interfaces with CAP_QUOTA
The new 'CAP_QUOTA' enum value denotes the capability quota to be transferred from the client to the server at session-creation time. Issue #2398
This commit is contained in:
committed by
Christian Helmuth
parent
bc82cce72b
commit
c1b981ede4
@@ -33,8 +33,8 @@ struct Genode::Cpu_connection : Connection<Cpu_session>, Cpu_session_client
|
||||
long priority, Affinity const &affinity)
|
||||
{
|
||||
return session(parent, affinity,
|
||||
"priority=0x%lx, ram_quota=128K, label=\"%s\"",
|
||||
priority, label);
|
||||
"priority=0x%lx, ram_quota=128K, cap_quota=%u, label=\"%s\"",
|
||||
priority, CAP_QUOTA, label);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,6 +34,13 @@ struct Genode::Cpu_session : Session
|
||||
{
|
||||
static const char *service_name() { return "CPU"; }
|
||||
|
||||
/*
|
||||
* A CPU session consumes a dataspace capability for the session-object
|
||||
* allocation, its session capability, the capability of the 'Native_cpu'
|
||||
* RPC interface, and a capability for the trace-control dataspace.
|
||||
*/
|
||||
enum { CAP_QUOTA = 4 };
|
||||
|
||||
typedef Cpu_session_client Client;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user