Region manager session interface

Class Genode::Rm_session::Attach_failed

Inherits from

public Exception

Class Genode::Rm_session::Invalid_dataspace

Inherits from

public Attach_failed

Class Genode::Rm_session::Region_conflict

Inherits from

public Attach_failed

Class Genode::Rm_session::Invalid_thread

Inherits from

public Exception

Class Genode::Rm_session::Out_of_memory

Inherits from

public Exception

Class Genode::Rm_session

Public definitions

Enum: Fault_type

READY READ_FAULT WRITE_FAULT EXEC_FAULT 0 1 2 3

Public functions

add_client

Add client to pager

Argument
Thread_capability thread Thread that will be paged
Return

Pager_capability Capability to be used for handling page faults

This method must be called at least once to establish a valid communication channel between the pager part of the region manager and the client thread.

attach

Map dataspace into local address space

Arguments
Dataspace_capability ds Capability of dataspace to map
size_t size Size of the locally mapped region default (0) is the whole dataspace
off_t offset Start at offset in dataspace
bool use_local_addr If set to true, attach the dataspace at the specified local_addr
addr_t local_addr Local destination address
Return

void * Local address of mapped dataspace

attach_at

Shortcut for attaching a dataspace at a predefined local address

Arguments
Dataspace_capability ds
addr_t local_addr
size_t size
off_t offset
Return

void *

dataspace

Return dataspace representation of region-manager session

Return

Dataspace_capability

detach

Remove region from local address space

Argument
void * local_addr

fault_handler

Register signal handler for region-manager faults

Argument
Signal_context_capability handler

service_name

Return

char *

state

Request current state of RM session

Return

State