#include <service_config.h>
Public Types |
enum | {
TYPE_START_CONFIG = ParentProtocol::TYPE_GENERIC_END,
TYPE_KILL,
TYPE_INFO_HOST,
TYPE_INFO_VM,
ECONFIGTOOBIG = ELASTGLOBAL
} |
enum | { CAP_PSEUDONYM,
CAP_LOCK,
CAP_SERVER_SESSION,
CAP_SERVER_PT
} |
| Client capabilities used to talk to the service. More...
|
enum | {
TYPE_INVALID = 0,
TYPE_OPEN,
TYPE_CLOSE,
TYPE_GENERIC_END,
TYPE_GET_PORTAL,
TYPE_REGISTER,
TYPE_UNREGISTER,
TYPE_GET_QUOTA,
TYPE_SINGLETON,
TYPE_REQ_KILL,
TYPE_SIGNAL
} |
| Protocol operations (message types). More...
|
enum | {
CAP_CHILD_ID = Config::CAP_PARENT_BEGIN,
CAP_SC_USAGE,
CAP_CHILD_EC,
CAP_PARENT_ID,
CAP_PT_PERCPU,
CAP_PT_IDLE_SCS = CAP_PT_PERCPU + Config::MAX_CPUS
} |
| Capabilities used by parent to construct child. More...
|
Public Member Functions |
unsigned | start_config (Utcb &utcb, unsigned short &id, unsigned long &maxmem, cap_sel cap_sc_usage, char const *config, unsigned long len=~0UL) |
unsigned | info_host (Utcb &utcb, unsigned long long &maxmem) |
unsigned | info_vm (Utcb &utcb, unsigned short id, struct info_net &net) |
unsigned | kill (Utcb &utcb, unsigned short id) |
| ConfigProtocol (unsigned cap_base, unsigned instance=0) |
unsigned | call_server (Utcb &utcb, bool drop_frame) |
| Call the server in a loop to resolve all faults.
|
unsigned | call_server_drop (Utcb &utcb) |
unsigned | call_server_keep (Utcb &utcb) |
template<class T > |
void | destroy (Utcb &utcb, unsigned portal_num, T *obj) |
| Destroy the object.
|
void | close (Utcb &utcb, unsigned portal_num, bool revoke_lock=true, bool _release_pseudonym=true) |
| Close the session to the parent.
|
unsigned | get_notify_sm () |
Utcb & | init_frame (Utcb &utcb, unsigned op) |
| GenericProtocol (const char *service, unsigned instance, unsigned cap_base, bool blocking, unsigned session_base=~0u) |
| static_assert ((CAP_PT_PERCPU+Config::MAX_CPUS)< (1U<< Config::CAP_RESERVED_ORDER),"Capability Space misconfiguration.") |
Member Enumeration Documentation
- Enumerator:
TYPE_START_CONFIG |
|
TYPE_KILL |
|
TYPE_INFO_HOST |
|
TYPE_INFO_VM |
|
ECONFIGTOOBIG |
|
Constructor & Destructor Documentation
ConfigProtocol::ConfigProtocol |
( |
unsigned |
cap_base, |
|
|
unsigned |
instance = 0 |
|
) |
| |
|
inline |
Member Function Documentation
unsigned ConfigProtocol::info_host |
( |
Utcb & |
utcb, |
|
|
unsigned long long & |
maxmem |
|
) |
| |
|
inline |
unsigned ConfigProtocol::info_vm |
( |
Utcb & |
utcb, |
|
|
unsigned short |
id, |
|
|
struct info_net & |
net |
|
) |
| |
|
inline |
unsigned ConfigProtocol::kill |
( |
Utcb & |
utcb, |
|
|
unsigned short |
id |
|
) |
| |
|
inline |
unsigned ConfigProtocol::start_config |
( |
Utcb & |
utcb, |
|
|
unsigned short & |
id, |
|
|
unsigned long & |
maxmem, |
|
|
cap_sel |
cap_sc_usage, |
|
|
char const * |
config, |
|
|
unsigned long |
len = ~0UL |
|
) |
| |
|
inline |
The documentation for this struct was generated from the following file: