Generated from osm_node_info_rcv.h with ROBODoc vunknown on Wed Aug 07 15:31:45 2002
TABLE OF CONTENTS
- OpenSM/Node Info Receiver
- OpenSM: Node Info Receiver/osm_ni_rcv_t
- OpenSM: Node Info Receiver/osm_ni_rcv_construct
- OpenSM: Node Info Receiver/osm_ni_rcv_destroy
- OpenSM: Node Info Receiver/osm_ni_rcv_init
- OpenSM: Node Info Receiver/osm_ni_rcv_is_inited
- OpenSM: Node Info Receiver/osm_ni_rcv_process
NAME
Node Info Receiver
DESCRIPTION
The Node Info Receiver object encapsulates the information
needed to receive the NodeInfo attribute from a node.
The Node Info Receiver 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_ni_rcv_t
DESCRIPTION
Node Info Receiver structure.
This object should be treated as opaque and should
be manipulated only through the provided functions.
SYNOPSIS
typedef struct _osm_ni_rcv
{
osm_subn_t *p_subn;
osm_req_t *p_gen_req;
osm_log_t *p_log;
osm_state_mgr_t *p_state_mgr;
cl_plock_t *p_lock;
} osm_ni_rcv_t;
FIELDS
base
OpenSM base object.
p_subn
Pointer to the Subnet object for this subnet.
p_gen_req_ctrl
Pointer to the generic request controller.
p_log
Pointer to the log object.
p_state_mgr
Pointer to the State Manager object.
p_lock
Pointer to the serializing lock.
SEE ALSO
Node Info Receiver object
NAME
osm_ni_rcv_construct
DESCRIPTION
This function constructs a Node Info Receiver object.
SYNOPSIS
void osm_ni_rcv_construct(
IN osm_ni_rcv_t* const p_ctrl );
PARAMETERS
p_ctrl
[in] Pointer to a Node Info Receiver object to construct.
RETURN VALUE
This function does not return a value.
NOTES
Allows calling osm_ni_rcv_init, osm_ni_rcv_destroy,
and osm_ni_rcv_is_inited.
Calling osm_ni_rcv_construct is a prerequisite to calling any other
method except osm_ni_rcv_init.
SEE ALSO
Node Info Receiver object, osm_ni_rcv_init,
osm_ni_rcv_destroy, osm_ni_rcv_is_inited
NAME
osm_ni_rcv_destroy
DESCRIPTION
The osm_ni_rcv_destroy function destroys the object, releasing
all resources.
SYNOPSIS
void osm_ni_rcv_destroy(
IN osm_ni_rcv_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
Node Info Receiver object.
Further operations should not be attempted on the destroyed object.
This function should only be called after a call to
osm_ni_rcv_construct or osm_ni_rcv_init.
SEE ALSO
Node Info Receiver object, osm_ni_rcv_construct,
osm_ni_rcv_init
NAME
osm_ni_rcv_init
DESCRIPTION
The osm_ni_rcv_init function initializes a
Node Info Receiver object for use.
SYNOPSIS
ib_api_status_t osm_ni_rcv_init(
IN osm_ni_rcv_t* const p_ctrl,
IN osm_req_t* const p_req,
IN osm_subn_t* const p_subn,
IN osm_log_t* const p_log,
IN osm_state_mgr_t* const p_state_mgr,
IN cl_plock_t* const p_lock );
PARAMETERS
p_ctrl
[in] Pointer to an osm_ni_rcv_t object to initialize.
p_req
[in] Pointer to an osm_req_t object.
p_subn
[in] Pointer to the Subnet object for this subnet.
p_log
[in] Pointer to the log object.
p_state_mgr
[in] Pointer to the State Manager object.
p_lock
[in] Pointer to the OpenSM serializing lock.
RETURN VALUES
CL_SUCCESS if the Node Info Receiver object was initialized
successfully.
NOTES
Allows calling other Node Info Receiver methods.
SEE ALSO
Node Info Receiver object, osm_ni_rcv_construct,
osm_ni_rcv_destroy, osm_ni_rcv_is_inited
NAME
osm_ni_rcv_is_inited
DESCRIPTION
Indicates if the object has been initialized with osm_ni_rcv_init.
SYNOPSIS
boolean_t osm_ni_rcv_is_inited(
IN const osm_ni_rcv_t* const p_ctrl );
PARAMETERS
p_ctrl
[in] Pointer to an osm_ni_rcv_t object.
RETURN VALUES
TRUE if the object was initialized successfully,
FALSE otherwise.
NOTES
The osm_ni_rcv_construct or osm_ni_rcv_init must be
called before using this function.
SEE ALSO
Node Info Receiver object, osm_ni_rcv_construct,
osm_ni_rcv_init
NAME
osm_ni_rcv_process
DESCRIPTION
Process the NodeInfo attribute.
SYNOPSIS
void osm_ni_rcv_process(
IN const osm_ni_rcv_t* const p_ctrl,
IN osm_madw_t* const p_madw );
PARAMETERS
p_ctrl
[in] Pointer to an osm_ni_rcv_t object.
p_madw
[in] Pointer to the MAD Wrapper containing the MAD
that contains the node's NodeInfo attribute.
RETURN VALUES
CL_SUCCESS if the NodeInfo processing was successful.
NOTES
This function processes a NodeInfo attribute.
SEE ALSO
Node Info Receiver, Node Info Response Controller