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

s
scsi(7) scsi(7)
uint32_t obslt5 :1;
uint32_t cmdque :1;
uint32_t vs2 :1;
uint8_t vendor_id[8];
uint8_t product_id[16];
uint8_t rev_num[4];
uint8_t vendor_spec[20];
uint16_t rsvd3 :4;
uint16_t clcking :2;
uint16_t qas :1;
uint16_t ius :1;
uint16_t rsvd4 :8;
vdesc_t vers_desc[8];
uint8_t rsvd6[22];
uint8_t vendor_parm_bytes[32];
} inquiry_3_t;
/* union for SIOC_INQUIRY ioctl */
union inquiry_data {
struct inquiry inq1; /* SCSI-1 inquiry */
struct inquiry_2 inq2; /* SCSI-2 inquiry */
inquiry_3_t inq3; /* SCSI-3 inquiry */
};
/* structure for SIOC_CAPACITY ioctl */
struct capacity {
uint32_t lba;
uint32_t blksz;
};
/* structure for SIOC_STORAGE_CAPACITY ioctl */
typedef struct {
uint64_t lba;
uint32_t blksz;
} storage_capacity_t;
The SIOC_XSENSE ioctl returns detailed information about device status and errors when such informa-
tion is available. Since there have been multiple versions of the SCSI standard for sense (status) data, mul-
tiple versions of the sense data declaration are provided. The SCSI-1 and non-aligned versions are pro-
vided for backward compatibility only. If no new CHECK-CONDITION-caused REQUEST SENSE com-
mand data has been obtained since the last
SIOC_XSENSE ioctl call, the
xsense_aligned.error_class
and sense_2_aligned.error_code
fields will contain the
value zero. Applications which require more accurate REQUEST SENSE data handling should use the
SCSI device-control driver (see scsi_ctl(7)).
The following information is included from
<sys/scsi.h> :
#define SIOC_XSENSE _IOR(’S’, 7, union sense_data)
/* structure for SIOC_XSENSE ioctl */
typedef union sense_data {
xsense_aligned_t r_sense1a; /* SCSI and CCS devices */
sense_2_aligned_t r_sense2a; /* SCSI-2 devices */
xsense_t r_sense1; /* Do not use; for
* compatibility only
*/
sense_2_t r_sense2; /* Do not use; for
* compatibility only
*/
} sense_data_t;
/*
* Struct xsense_aligned is for examining the sense data of SCSI-1
* and CCS devices.
150 Hewlett-Packard Company 3 HP-UX 11i Version 3: February 2007