HP-UX Reference (11i v3 07/02) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

s
scsi(7) scsi(7)
unsigned char fru;
unsigned char field;
unsigned short field_ptr;
uint32_t dev_error;
unsigned char misc_bytes[106];
} xsense_t;
/*
* Struct sense_2 is provided for backward source code
* compatibility only.
* Struct sense_2_aligned is the appropriate struct for
* examining the sense
* data of SCSI-2 devices.
*/
typedef struct sense_2 {
unsigned int info_valid :1;
unsigned int error_code :7;
unsigned char seg_num;
unsigned int filemark :1;
unsigned int eom :1;
unsigned int ili :1;
unsigned int resv :1;
unsigned int key :4;
unsigned char info[4];
unsigned char add_len;
unsigned int cmd_info;
unsigned char code;
unsigned char qualifier;
unsigned char fru;
unsigned char key_specific[3];
unsigned char add_sense_bytes[113];
} sense_2_t;
ERRORS
The following errors may result from a call to a SCSI device driver:
[EACCES] Required permission is denied for the device or operation.
[ENXIO] If resulting from an open call, this indicates there is no device at the specified address. For
other calls, this indicates the specified address is out of range or the device may no longer
be accessed.
[EINVAL] If resulting from an open call, this indicates the device is not supported by the device driver
(e.g., incorrect device type). For other calls, this indicates the request or some request
argument is invalid. If resulting from the SIOC_CAPACITY
ioctl, one or more of the
fields in the argument structure may have overflowed.
[EBUSY] This indicates the device is not ready for use or that the requested operation conflicts with
other operations (e.g., the device is currently open via another device driver or exclusive
access is in effect).
[EIO] Indicates a SCSI protocol or communication problem has occurred, or that a SCSI com-
mand resulted in a non-good status.
Manual entries that describe specific SCSI peripheral device drivers may provide additional qualification of
error results.
WARNINGS
Use of devices that are not ofcially supported can cause data loss, system panics and device damage. HP-
UX device drivers expect devices to be SCSI-2 compliant. Unsupported devices that are only SCSI-CCS
compliant may work but their use is discouraged. Use of unsupported devices that are only SCSI-1 compli-
ant is strongly discouraged.
Changing SCSI bus connectivity (recabling) while the system is running is not supported. Switching SCSI
device power on or off while the device is connected to a system that does not support powerfail recovery is
not supported. These activities are known to cause data loss and system panics.
152 Hewlett-Packard Company 5 HP-UX 11i Version 3: February 2007