Generated from osm_ucast_mgr.h with ROBODoc vunknown on Wed Aug 07 15:31:53 2002
TABLE OF CONTENTS
- OpenSM/Unicast Manager
- OpenSM: Unicast Manager/osm_ucast_mgr_t
- OpenSM: Unicast Manager/osm_ucast_mgr_construct
- OpenSM: Unicast Manager/osm_ucast_mgr_destroy
- OpenSM: Unicast Manager/osm_ucast_mgr_init
- OpenSM: Unicast Manager/osm_ucast_mgr_process
NAME
Unicast Manager
DESCRIPTION
The Unicast Manager object encapsulates the information
needed to control unicast LID forwarding on the subnet.
The Unicast Manager 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_ucast_mgr_t
DESCRIPTION
Unicast Manager structure.
This object should be treated as opaque and should
be manipulated only through the provided functions.
SYNOPSIS
typedef struct _osm_ucast_mgr
{
osm_subn_t *p_subn;
osm_req_t *p_req;
osm_log_t *p_log;
cl_plock_t *p_lock;
cl_qmap_t *p_sw_guid_tbl;
} osm_ucast_mgr_t;
FIELDS
base
OpenSM base object.
p_subn
Pointer to the Subnet object for this subnet.
p_req
Pointer to the Requester object sending SMPs.
p_log
Pointer to the log object.
p_lock
Pointer to the serializing lock.
p_sw_guid_tbl
Pointer to the switch table.
SEE ALSO
Unicast Manager object
NAME
osm_ucast_mgr_construct
DESCRIPTION
This function constructs a Unicast Manager object.
SYNOPSIS
void
osm_ucast_mgr_construct(
IN osm_ucast_mgr_t* const p_mgr );
PARAMETERS
p_mgr
[in] Pointer to a Unicast Manager object to construct.
RETURN VALUE
This function does not return a value.
NOTES
Allows osm_ucast_mgr_destroy
Calling osm_ucast_mgr_construct is a prerequisite to calling any other
method except osm_ucast_mgr_init.
SEE ALSO
Unicast Manager object, osm_ucast_mgr_init,
osm_ucast_mgr_destroy
NAME
osm_ucast_mgr_destroy
DESCRIPTION
The osm_ucast_mgr_destroy function destroys the object, releasing
all resources.
SYNOPSIS
void
osm_ucast_mgr_destroy(
IN osm_ucast_mgr_t* const p_mgr );
PARAMETERS
p_mgr
[in] Pointer to the object to destroy.
RETURN VALUE
This function does not return a value.
NOTES
Performs any necessary cleanup of the specified
Unicast Manager object.
Further operations should not be attempted on the destroyed object.
This function should only be called after a call to
osm_ucast_mgr_construct or osm_ucast_mgr_init.
SEE ALSO
Unicast Manager object, osm_ucast_mgr_construct,
osm_ucast_mgr_init
NAME
osm_ucast_mgr_init
DESCRIPTION
The osm_ucast_mgr_init function initializes a
Unicast Manager object for use.
SYNOPSIS
ib_api_status_t
osm_ucast_mgr_init(
IN osm_ucast_mgr_t* const p_mgr,
IN osm_req_t* const p_req,
IN osm_subn_t* const p_subn,
IN osm_log_t* const p_log,
IN cl_plock_t* const p_lock );
PARAMETERS
p_mgr
[in] Pointer to an osm_ucast_mgr_t object to initialize.
p_req
[in] Pointer to the attribute Requester object.
p_subn
[in] Pointer to the Subnet object for this subnet.
p_log
[in] Pointer to the log object.
p_lock
[in] Pointer to the OpenSM serializing lock.
RETURN VALUES
IB_SUCCESS if the Unicast Manager object was initialized
successfully.
NOTES
Allows calling other Unicast Manager methods.
SEE ALSO
Unicast Manager object, osm_ucast_mgr_construct,
osm_ucast_mgr_destroy
NAME
osm_ucast_mgr_process
DESCRIPTION
Process and configure the subnet's unicast forwarding tables.
SYNOPSIS
osm_signal_t
osm_ucast_mgr_process(
IN osm_ucast_mgr_t* const p_mgr );
PARAMETERS
p_mgr
[in] Pointer to an osm_ucast_mgr_t object.
RETURN VALUES
Returns the appropriate signal to the caller:
OSM_SIGNAL_DONE - operation is complete
OSM_SIGNAL_DONE_PENDING - local operations are complete, but
transactions are still pending on the wire.
NOTES
This function processes the subnet, configuring switch
unicast forwarding tables.
SEE ALSO
Unicast Manager, Node Info Response Controller