Barrelfish
Functions
monitor_client.c File Reference

Client for interacting with the monitor. More...

Functions

errval_t monitor_client_lmp_bind (struct monitor_lmp_binding *mcb, monitor_bind_continuation_fn *cont, void *st, struct waitset *ws, size_t lmp_buflen_words)
 Initiate a new LMP binding to the monitor. More...
 
errval_t monitor_client_lmp_accept (struct monitor_lmp_binding *mcb, struct waitset *ws, size_t lmp_buflen_words)
 Accept a new LMP binding in a client from the monitor. More...
 
errval_t monitor_client_new_binding (monitor_bind_continuation_fn *cont, void *st, struct waitset *ws, size_t lmp_buflen_words)
 Initiate a new (subsequent to boot) LMP binding to the monitor. More...
 
errval_t monitor_client_blocking_rpc_init (void)
 Sets up binding to monitor's blocking rpc channel.
 

Detailed Description

Client for interacting with the monitor.

Function Documentation

errval_t monitor_client_lmp_accept ( struct monitor_lmp_binding *  mcb,
struct waitset ws,
size_t  lmp_buflen_words 
)

Accept a new LMP binding in a client from the monitor.

Should only be used in the monitor.

Parameters
mcbStorage for binding state
wsWaitset for handling incoming messages
buflen_wordsSize of incoming buffer, in number of words
errval_t monitor_client_lmp_bind ( struct monitor_lmp_binding *  mcb,
monitor_bind_continuation_fn *  cont,
void *  st,
struct waitset ws,
size_t  lmp_buflen_words 
)

Initiate a new LMP binding to the monitor.

Must only be called once at startup time on any dispatcher.

Parameters
mcbStorage for binding state
wsWaitset for handling incoming messages
contContinuation for when binding completes or fails
stState passed to continuation function
buflen_wordsSize of incoming buffer, in number of words
errval_t monitor_client_new_binding ( monitor_bind_continuation_fn *  cont,
void *  st,
struct waitset ws,
size_t  lmp_buflen_words 
)

Initiate a new (subsequent to boot) LMP binding to the monitor.

May be called after initialisation to create another binding to the monitor. Must not be called in the monitor.

Parameters
contContinuation for when binding completes or fails
stState passed to continuation function
buflen_wordsSize of incoming buffer, in number of words
wsWaitset for handling incoming messages