scsi_ctl.7 (2010 09)

s
scsi_ctl(7) scsi_ctl(7)
Most SCSI commands have a logical unit number (LUN) field. Parallel SCSI implementations on the
HP-UX operating system select logical units via the SCSI
IDENTIFY message. The LUN portion of the
cdb should normally be set to zero, even when the LUN being accessed is not zero.
Use of linked commands is not supported.
Most SCSI commands with a data phase expect the data length information to be included somewhere in
the command bytes. Both the data_length field and any cdb data length values must be correctly
specified to get correct command results.
Very large (or infinite) timeout values can cause a parallel SCSI bus (potentially the entire system) to
hang.
Device and/or bus reset operations can be used to regain a device’s attention when a timeout expires.
Resetting a device can cause I/O errors and/or loss of cached data. This can result in loss of data and/or
system panics.
Obtaining SCSI
INQUIRY data by use of the
SIOC_INQUIRY ioctl instead of by use of the SIOC_IO
ioctl is generally preferable since SCSI implementations on the HP-UX operating system synchronize
access of inquiry data during driver open calls.
Since communication parameters can be affected by device-specific driver capabilities, device-specific
driver use might result in communication parameter changes.
The
SIOC_CAPACITY ioctl is not supported by
scsi_ctl because the meaning of capacity is device-
specific.
FILES
/usr/include/sys/scsi.h
/usr/include/sys/scsi_ctl.h
SEE ALSO
mknod(1M), mksf(1M), ioctl(2), plock(2). privileges(5), intro(7), scsi(7).
10 Hewlett-Packard Company 10 HP-UX 11i Version 3: September 2010