scsi.7 (2010 09)
s
scsi(7) scsi(7)
* Struct xsense is provided for backward source code
* compatibility only.
* Struct xsense_aligned is the appropriate struct for
* examining the sense
* data of SCSI-1 and CCS devices.
*/
typedef struct xsense {
unsigned int valid :1;
unsigned int error_class :3;
unsigned int error_code :4;
unsigned char seg_num;
unsigned int parms :4;
unsigned int sense_key :4;
unsigned char lba[4];
unsigned char add_len;
unsigned char copysearch[4]; /* Unused by HP-UX */
unsigned char sense_code;
unsigned char resv;
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.
HP-UX 11i Version 3: September 2010 − 7 − Hewlett-Packard Company 7