Generated from osm_link_mgr.h with ROBODoc vunknown on Wed Aug 07 15:31:42 2002
TABLE OF CONTENTS
- OpenSM/Link Manager
- OpenSM: Link Manager/osm_link_mgr_t
- OpenSM: Link Manager/osm_link_mgr_construct
- OpenSM: Link Manager/osm_link_mgr_destroy
- OpenSM: Link Manager/osm_link_mgr_init
- OpenSM: Link Manager/osm_link_mgr_process
NAME
Link Manager
DESCRIPTION
The Link Manager object encapsulates the information
needed to control unicast LID forwarding on the subnet.
The Link 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_link_mgr_t
DESCRIPTION
Link Manager structure.
This object should be treated as opaque and should
be manipulated only through the provided functions.
SYNOPSIS
typedef struct _osm_link_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_link_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
Link Manager object
NAME
osm_link_mgr_construct
DESCRIPTION
This function constructs a Link Manager object.
SYNOPSIS
void
osm_link_mgr_construct(
IN osm_link_mgr_t* const p_mgr );
PARAMETERS
p_mgr
[in] Pointer to a Link Manager object to construct.
RETURN VALUE
This function does not return a value.
NOTES
Allows osm_link_mgr_destroy
Calling osm_link_mgr_construct is a prerequisite to calling any other
method except osm_link_mgr_init.
SEE ALSO
Link Manager object, osm_link_mgr_init,
osm_link_mgr_destroy
NAME
osm_link_mgr_destroy
DESCRIPTION
The osm_link_mgr_destroy function destroys the object, releasing
all resources.
SYNOPSIS
void
osm_link_mgr_destroy(
IN osm_link_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
Link Manager object.
Further operations should not be attempted on the destroyed object.
This function should only be called after a call to
osm_link_mgr_construct or osm_link_mgr_init.
SEE ALSO
Link Manager object, osm_link_mgr_construct,
osm_link_mgr_init
NAME
osm_link_mgr_init
DESCRIPTION
The osm_link_mgr_init function initializes a
Link Manager object for use.
SYNOPSIS
ib_api_status_t
osm_link_mgr_init(
IN osm_link_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_link_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 Link Manager object was initialized
successfully.
NOTES
Allows calling other Link Manager methods.
SEE ALSO
Link Manager object, osm_link_mgr_construct,
osm_link_mgr_destroy
NAME
osm_link_mgr_process
DESCRIPTION
Processes all ports in the subnet per the link manager command.
SYNOPSIS
osm_signal_t
osm_link_mgr_process(
IN osm_link_mgr_t* const p_mgr,
IN const osm_link_mgr_command_t cmd );
PARAMETERS
p_mgr
[in] Pointer to an osm_link_mgr_t object.
cmd
[in] Link Manager command
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
SEE ALSO
Link Manager, Node Info Response Controller