NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EventsProtocol Struct Reference

#include <service_events.h>

Inheritance diagram for EventsProtocol:
GenericProtocol ParentProtocol

Public Types

enum  { TYPE_GET_EVENTS_INFO = ParentProtocol::TYPE_GENERIC_END }
enum  { EVENT_REBOOT = 0xbbbb, EVENT_UNSERVED_IOACCESS = 0xbbc0 }
- Public Types inherited from GenericProtocol
enum  { CAP_PSEUDONYM, CAP_LOCK, CAP_SERVER_SESSION, CAP_SERVER_PT }
 Client capabilities used to talk to the service. More...
- Public Types inherited from ParentProtocol
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 send_event (Utcb &utcb, unsigned id, unsigned data_len=0, const void *data=0)
 EventsProtocol (unsigned cap_base, unsigned instance=0)
- Public Member Functions inherited from GenericProtocol
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 ()
Utcbinit_frame (Utcb &utcb, unsigned op)
 GenericProtocol (const char *service, unsigned instance, unsigned cap_base, bool blocking, unsigned session_base=~0u)
- Public Member Functions inherited from ParentProtocol
 static_assert ((CAP_PT_PERCPU+Config::MAX_CPUS)< (1U<< Config::CAP_RESERVED_ORDER),"Capability Space misconfiguration.")

Additional Inherited Members

- Static Public Member Functions inherited from GenericProtocol
static Utcbinit_frame_noid (Utcb &utcb, unsigned op)
- Protected Attributes inherited from GenericProtocol
const char * _service
unsigned _instance
unsigned _cap_base
 Base of the capability range. This cap refers to CAP_PSEUDONYM.
unsigned _session_base
 Base of the session portals.
Semaphore _lock
bool _blocking
bool _disabled

Member Enumeration Documentation

anonymous enum
Enumerator:
TYPE_GET_EVENTS_INFO 
anonymous enum
Enumerator:
EVENT_REBOOT 
EVENT_UNSERVED_IOACCESS 

Constructor & Destructor Documentation

EventsProtocol::EventsProtocol ( unsigned  cap_base,
unsigned  instance = 0 
)
inline

Member Function Documentation

unsigned EventsProtocol::send_event ( Utcb utcb,
unsigned  id,
unsigned  data_len = 0,
const void *  data = 0 
)
inline

The documentation for this struct was generated from the following file: