ISCSI_TARGET_MAPPINGA structure (iscsidsc.h)
The ISCSI_TARGET_MAPPING structure contains information about a target and the Host-Bus Adapters (HBAs) and buses through which the target is reached.
Syntax
typedef struct {
CHAR InitiatorName[MAX_ISCSI_HBANAME_LEN];
CHAR TargetName[MAX_ISCSI_NAME_LEN + 1];
CHAR OSDeviceName[MAX_PATH];
ISCSI_UNIQUE_SESSION_ID SessionId;
ULONG OSBusNumber;
ULONG OSTargetNumber;
ULONG LUNCount;
PSCSI_LUN_LIST LUNList;
} ISCSI_TARGET_MAPPINGA, *PISCSI_TARGET_MAPPINGA;
Members
InitiatorName[MAX_ISCSI_HBANAME_LEN]
A string representing the name of the HBA initiator through which the target is accessed.
TargetName[MAX_ISCSI_NAME_LEN + 1]
A string representing the target name.
OSDeviceName[MAX_PATH]
A string representing the device name of the HBA initiator; for example '\device\ScsiPort3'.
SessionId
A ISCSI_UNIQUE_SESSION_ID structure containing information that uniquely identifies the session..
OSBusNumber
The bus number used by the initiator as the local SCSI address of the target.
OSTargetNumber
The target number used by the initiator as the local SCSI address of the target.
LUNCount
The number of logical units (LUN) on the target.
LUNList
A list of SCSI_LUN_LIST structures that contain information about the LUNs associated with the target.
Remarks
Note
The iscsidsc.h header defines ISCSI_TARGET_MAPPING as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | iscsidsc.h |