•  Back 
  •  Functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : A system-global SCSI-driver SCSI-Driver
Author      : Steffen Engel
Version     : Text-Release 1.10e
Subject     : Documentation/Utilities
Nodes       : 31
Index Size  : 708
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : Title
@help       : 
@options    : -i +zz -t2
@width      : 70
View Ref-File3.7  Error                                                 SCSI-Driver

  LONG  cdecl (*Error)        (tHandle    handle,
                               WORD       rwflag,
                               WORD       ErrNo);
        #define cErrRead   0
        #define cErrWrite  1
          #define cErrMediach  0
          #define cErrReset    1

Interrogate/set error status on the device.

With this one can inquire which errors have arisen recently on the 
device. This is necessary as several programs may be working with this
device, and otherwise the one that reads the status with RequestSense 
would be the only one to know what has happened. Hence every program 
that evaluates RequestSense must report a corresponding error, so that
this is logged for all other processes with an open handle.

Everything must be reported that produces a status change of the 
device, such as Mediach und Reset. Only in this way can the hard disk 
driver get, say, a media-change message if the medium has been changed
during an image backup.

rwflag = 0 interrogates the status (16-bit bit-vector) and clears it 
for this handle. rwflag = 1 sets the bit ErrNo for all opened handles 
on this device.