Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ device_error(1M) — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought



DEVICEERROR(1M)    RISC/os Reference Manual     DEVICEERROR(1M)



NAME
     device_error - inject errors into device drivers for testing
          purposes

SYNOPSIS
     /usr/etc/deviceerror add [ device ] [ -s start ] [ -c count
     ] [ -r repeat ] [ -t type ] [ -b base ]
          [ -l length ] [ -i ioctl ] [ -d device ] [ -e error ]
     /usr/etc/deviceerror delete index [ index  ...]
     /usr/etc/deviceerror get index [ index  ...]
     /usr/etc/deviceerror list

DESCRIPTION
     deviceerror is used to inject errors into device drivers to
     test error recovery features of higher level code.

     The device argument is the path of the device entry for
     injecting errors.

     The index argument is the index of the error block.

     The following types of requests are supported by the
     deviceerror command:

          add       Add a device error.  If successful the index
                    of the error block is displayed.

          delete    Delete a device error.

          get       Display a device error.

          list      List all device errors.

     The add request has the following control options:

          -s start
               Start injecting errors with start request.

          -c count
               Continue injecting errors for count requests.

          -r repeat
               Repeat injection sequence repeat times.  A value
               of -1 indicates that this should be repeated for-
               ever.

          -t type
               Match on the following types of requests.  The
               type field is of the form rwoci (read, write,
               open, close, ioctl).

          -b base



                        Printed 11/19/92                   Page 1





DEVICEERROR(1M)    RISC/os Reference Manual     DEVICEERROR(1M)



               Base block number for matching on a range.

          -l length
               Length in bytes of the range.  A value of zero
               indicates that a range check should not be done.

          -e error
               Error to be injected.  The default value is EIO.

          -d device
               Path of the device entry for which errors should
               be injected.

          -i ioctl
               Number of ioctl to match against when injecting
               ioctl errors.  The default value of zero matches
               all ioctl commands.

ORIGIN
     MIPS Computer Systems, Inc.



































 Page 2                 Printed 11/19/92



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026