Generated from osm_req_ctrl.h with ROBODoc vunknown on Wed Aug 07 15:31:48 2002
TABLE OF CONTENTS
- OpenSM/Generic Request Controller
- OpenSM: Generic Request Controller/osm_req_ctrl_t
- OpenSM: Generic Request Controller/osm_req_ctrl_construct
- OpenSM: Generic Request Controller/osm_req_ctrl_destroy
- OpenSM: Generic Request Controller/osm_req_ctrl_init
NAME
Generic Request Controller
DESCRIPTION
The Generic Request Controller object encapsulates the information
needed to request an attribute from a node.
The Generic Request Controller object is thread safe.
This object should be treated as opaque and should be
manipulated only through the provided functions.
AUTHOR
Steve King, Intel
NAME
osm_req_ctrl_t
DESCRIPTION
Generic Request Controller structure.
This object should be treated as opaque and should
be manipulated only through the provided functions.
SYNOPSIS
typedef struct _osm_req_ctrl
{
osm_req_t *p_req;
osm_log_t *p_log;
cl_dispatcher_t *p_disp;
cl_disp_reg_handle_t h_disp;
} osm_req_ctrl_t;
FIELDS
base
OpenSM base object.
p_log
Pointer to the log object.
p_disp
Pointer to the Dispatcher.
h_disp
Handle returned from dispatcher registration.
SEE ALSO
Generic Request Controller object
NAME
osm_req_ctrl_construct
DESCRIPTION
This function constructs a Generic Request Controller object.
SYNOPSIS
void
osm_req_ctrl_construct(
IN osm_req_ctrl_t* const p_ctrl );
PARAMETERS
p_ctrl
[in] Pointer to a Generic Request Controller object to construct.
RETURN VALUE
This function does not return a value.
NOTES
Allows calling osm_req_ctrl_init, osm_req_ctrl_destroy,
and osm_req_ctrl_is_inited.
Calling osm_req_ctrl_construct is a prerequisite to calling any other
method except osm_req_ctrl_init.
SEE ALSO
Generic Request Controller object, osm_req_ctrl_init,
osm_req_ctrl_destroy, osm_req_ctrl_is_inited
NAME
osm_req_ctrl_destroy
DESCRIPTION
The osm_req_ctrl_destroy function destroys the object, releasing
all resources.
SYNOPSIS
void
osm_req_ctrl_destroy(
IN osm_req_ctrl_t* const p_ctrl );
PARAMETERS
p_ctrl
[in] Pointer to the object to destroy.
RETURN VALUE
This function does not return a value.
NOTES
Performs any necessary cleanup of the specified
Generic Request Controller object.
Further operations should not be attempted on the destroyed object.
This function should only be called after a call to
osm_req_ctrl_construct or osm_req_ctrl_init.
SEE ALSO
Generic Request Controller object, osm_req_ctrl_construct,
osm_req_ctrl_init
NAME
osm_req_ctrl_init
DESCRIPTION
The osm_req_ctrl_init function initializes a
Generic Request Controller object for use.
SYNOPSIS
ib_api_status_t
osm_req_ctrl_init(
IN osm_req_ctrl_t* const p_ctrl,
IN osm_req_t* const p_req,
IN osm_log_t* const p_log,
IN cl_dispatcher_t* const p_disp );
PARAMETERS
p_ctrl
[in] Pointer to an osm_req_ctrl_t object to initialize.
p_req
[in] Pointer to a Generic Requester object.
p_log
[in] Pointer to the log object.
p_disp
[in] Pointer to the OpenSM central Dispatcher.
RETURN VALUES
CL_SUCCESS if the Generic Request Controller object was initialized
successfully.
NOTES
Allows calling other Generic Request Controller methods.
SEE ALSO
Generic Request Controller object, osm_req_ctrl_construct,
Generic Requester object, osm_req_ctrl_destroy,
osm_req_ctrl_is_inited