The IOCC_UNIT_STATUS CommandCode consists of all the CommandModifiers responsible for returning a unit's current status. The following table describes these CommandModifiers:

┌──────────────────────────────┬──────────────────────────────┐
│CommandModifier               │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│IOCM_GET_UNIT_STATUS          │Returns flags indicating the  │
│                              │unit's current Ready, Power   │
│                              │On, and Defective status.  For│
│                              │SCSI devices, if a SCSI Target│
│                              │is detected, the driver must  │
│                              │issue a SCSI Test Unit Ready  │
│                              │command to obtain the current │
│                              │unit status.                  │
├──────────────────────────────┼──────────────────────────────┤
│IOCM_GET_CHANGELINE_STATE     │Returns the unit's current    │
│                              │changeline state.  This       │
│                              │command is mandatory for      │
│                              │standard diskette devices.    │
├──────────────────────────────┼──────────────────────────────┤
│IOCM_GET_MEDIA_SENSE          │Returns the unit's current    │
│                              │media storage capacity.  This │
│                              │command is mandatory for      │
│                              │standard diskette devices.    │
├──────────────────────────────┼──────────────────────────────┤
│IOCM_GET_LOCK_STATUS          │Returns media sense           │
│                              │information This command is   │
│                              │mandatory for standard        │
│                              │diskette devices.             │
└──────────────────────────────┴──────────────────────────────┘

Remarks