Writing Monitors for the Event Monitoring Service (December 1999)
52 Chapter2
The EMS Application Programming Interface (API)
Function Descriptions
rm_send_reply
Used by resource monitors to send replies to the Registrar.
Function Prototype
int rm_send_reply ( rm_object_addr obj,
rm_error_type *error_code );
Parameters
error_code
Provides additional information about failure conditions of
the function. Valid values are listed in the file
/opt/resmon/include/resmon.h.
obj
The object returned by rm_get_next_event(), with new values set
as appropriate by the resource monitor. See the chapter, “Creating a
Resource Monitor” for a description of what should be set for each event
type.
Returned Value
Upon successful completion, rm_send_reply() returns 0. If an error
occurs, the value returned is -1, and error_code is set to one of the
values described in the file /opt/resmon/include/resmon.h.