19 int rtn = close(msg->
fd);
21 log_error(
"Error closing file descriptor %d", msg->
fd);
40 .
name =
"Baremetal_Msu",
Collecting statistics within the runtime.
Defines a type of MSU, including callback and accessor functions.
int default_routing(struct msu_type *type, struct local_msu *sender, struct msu_msg *msg, struct msu_endpoint *output)
The defualt routing strategy, using the key of the MSU message to route to a pre-defined endpoint...
Logging of status messages to the terminal.
For profiling the path of MSU messages through DeDOS.
Declares the methods available for calling an MSU from another MSU.
#define log_error(fmt,...)
Declares the structures and functions applicable to MSUs on the local machine.
#define PROFILE_EVENT(hdr, stat_id)
If the header is marked for profiling, profiles the given event.
The structure that represents an MSU located on the local machine.
int call_msu_type(struct local_msu *sender, struct msu_type *dst_type, struct msu_msg_hdr *hdr, size_t data_size, void *data)
Sends an MSU message to a destination of the given type, utilizing the sending MSU's routing function...
A message that is to be delivered to an instance of an MSU.
char * name
Name for the msu type.
An endpoint to which an msu_msg can be delivered.
int route_to_origin_runtime(struct msu_type *type, struct local_msu *sender, struct msu_msg *msg, struct msu_endpoint *output)
Routes an MSU message to the runtime on which the message originated.
Declares strategies that MSUs can use for routing to endpoints.