Generated from osm_partition.h with ROBODoc vunknown on Wed Aug 07 15:31:46 2002

TABLE OF CONTENTS

  1. OpenSM/Partition
  2. OpenSM: Partition/osm_prtn_t
  3. OpenSM: Partition/osm_prtn_construct
  4. OpenSM: Partition/osm_prtn_destroy
  5. OpenSM: Partition/osm_prtn_init
  6. OpenSM: Partition/osm_prtn_is_inited
  7. OpenSM: Partition/osm_prtn_is_guid
  8. OpenSM: Partition/osm_prtn_get_pkey

OpenSM/Partition

NAME
    Partition

DESCRIPTION
    The Partition object encapsulates the information needed by the
    OpenSM to manage Partitions.  The OpenSM allocates one Partition
    object per Partition in the IBA subnet.

    The Partition is not thread safe, thus callers must provide
    serialization.

    This object should be treated as opaque and should be
    manipulated only through the provided functions.

AUTHOR
    Steve King, Intel


OpenSM: Partition/osm_prtn_t

NAME
    osm_prtn_t

DESCRIPTION
    Partition structure.

    The osm_prtn_t object should be treated as opaque and should
    be manipulated only through the provided functions.

SYNOPSIS
typedef struct _osm_prtn
{
    uint16_t                        pkey;
    cl_map                          port_guid_tbl;

} osm_prtn_t;

FIELDS
    base
        OpenSM base object.

    pkey
        The IBA defined P_KEY of this Partition.

    port_guid_tbl
        Container of pointers to all Port objects in the Partition,
        indexed by port GUID.

SEE ALSO
    Partition

OpenSM: Partition/osm_prtn_construct

NAME
    osm_prtn_construct

DESCRIPTION
    This function constructs a Partition.

SYNOPSIS
void osm_prtn_construct(
    IN osm_prtn_t* const p_prtn );

PARAMETERS
    p_prtn
        [in] Pointer to a Partition to construct.

RETURN VALUE
    This function does not return a value.

NOTES
    Allows calling osm_prtn_init, osm_prtn_destroy, and osm_prtn_is_inited.

    Calling osm_prtn_construct is a prerequisite to calling any other
    method except osm_prtn_init.

SEE ALSO
    Partition, osm_prtn_init, osm_prtn_destroy, osm_prtn_is_inited

OpenSM: Partition/osm_prtn_destroy

NAME
    osm_prtn_destroy

DESCRIPTION
    The osm_prtn_destroy function destroys a Partition, releasing
    all resources.

SYNOPSIS
void osm_prtn_destroy(
    IN osm_prtn_t* const p_prtn );

PARAMETERS
    p_prtn
        [in] Pointer to a Partition to destroy.

RETURN VALUE
    This function does not return a value.

NOTES
    Performs any necessary cleanup of the specified Partition.
    Further operations should not be attempted on the destroyed object.
    This function should only be called after a call to osm_prtn_construct or
    osm_prtn_init.

SEE ALSO
    Partition, osm_prtn_construct, osm_prtn_init

OpenSM: Partition/osm_prtn_init

NAME
    osm_prtn_init

DESCRIPTION
    The osm_prtn_init function initializes a Partition for use.

SYNOPSIS
ib_api_status_t osm_prtn_init(
    IN osm_prtn_t* const p_prtn );

PARAMETERS
    p_prtn
        [in] Pointer to an osm_prtn_t object to initialize.

RETURN VALUES
    CL_SUCCESS if initialization was successful.

NOTES
    Allows calling other Partition methods.

SEE ALSO
    Partition, osm_prtn_construct, osm_prtn_destroy,
    osm_prtn_is_inited

OpenSM: Partition/osm_prtn_is_inited

NAME
    osm_prtn_is_inited

DESCRIPTION
    Indicates if the object has been initialized with osm_prtn_init.

SYNOPSIS
boolean_t osm_ptrn_is_inited(
    IN const osm_prtn_t* const p_prtn );

PARAMETERS
    p_prtn
        [in] Pointer to an osm_prtn_t object.

RETURN VALUES
    TRUE if the object was initialized successfully,
    FALSE otherwise.

NOTES
    The osm_prtn_construct or osm_prtn_init must be called before using
    this function.

SEE ALSO
    Partition, osm_prtn_construct, osm_prtn_init

OpenSM: Partition/osm_prtn_is_guid

NAME
    osm_prtn_is_guid

DESCRIPTION
    Indicates if a port is a member of the partition.

SYNOPSIS
boolean_t osm_prtn_is_guid(
    IN const osm_prtn_t* const p_prtn,
    IN const uint64 guid );

PARAMETERS
    p_prtn
        [in] Pointer to an osm_prtn_t object.

    guid
        [in] Port GUID.

RETURN VALUES
    TRUE if the specified port GUID is a member of the partition,
    FALSE otherwise.

NOTES

SEE ALSO

OpenSM: Partition/osm_prtn_get_pkey

NAME
    osm_prtn_get_pkey

DESCRIPTION
    Gets the IBA defined P_KEY value for this Partition.

SYNOPSIS
uint16_t osm_prtn_get_pkey(
    IN const osm_prtn_t* const p_prtn );

PARAMETERS
    p_prtn
        [in] Pointer to an osm_prtn_t object.

RETURN VALUES
    P_KEY value for this Partition.

NOTES

SEE ALSO