/* Retrieves the current set value of iSCSI Initiator Name. */
EFI_STATUS EFIAPI IScsiGetInitiatorName(IN EFI_ISCSI_INITIATOR_NAME_PROTOCOL *This, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
/* Retrieves the current set value of iSCSI Initiator Name. */
EFI_STATUS EFIAPI IScsiGetInitiatorName(IN EFI_ISCSI_INITIATOR_NAME_PROTOCOL *This, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
{
  EFI_STATUS  Status;
  if ((BufferSize == NULL) || (Buffer == NULL)) {
    return EFI_INVALID_PARAMETER;
  }
  Status = gRT->GetVariable (
                  ISCSI_INITIATOR_NAME_VAR_NAME,
                  &gEfiIScsiInitiatorNameProtocolGuid,
                  NULL,
                  BufferSize,
                  Buffer
                  );
  return Status;
}