[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    scsi_arq_status(9S) manual page Table of Contents

Name

scsi_arq_status - SCSI auto request sense structure

Synopsis

#include <sys/scsi/scsi.h>

Interface Level

Solaris DDI specific (Solaris DDI)

Description

When auto request sense has been enabled using scsi_ifsetcap(9F) and the "auto-rqsense" capability, the target driver must allocate a status area in the SCSI packet structure (see scsi_pkt(9S) ) for the auto request sense structure. In the event of a check condition the transport layer will automatically execute a request sense command. This ensures that the request sense information does not get lost. The auto request sense structure supplies the SCSI status of the original command, the transport information pertaining to the request sense command, and the request sense data.

Structure Members

struct scsi_statussts_status;/* SCSI status */
struct scsi_statussts_rqpkt_status;/* SCSI status of
request sense cmd */
u_charsts_rqpkt_reason;/* reason completion */
u_charsts_rqpkt_resid;/* residue */
u_longsts_rqpkt_state; /* state of command */
u_longsts_rqpkt_statistics;/* statistics */
struct scsi_extended_sensests_sensedata;/* actual sense data */

sts_status is the SCSI status of the original command. If the status indicates a check condition then the transport layer may have performed an auto request sense command.

sts_rqpkt_status is the SCSI status of the request sense command.

sts_rqpkt_reason is the completion reason of the request sense command. If the reason is not CMD_CMPLT , then the request sense command did not complete normally.

sts_rqpkt_resid is the residual count of the data transfer and indicates the number of data bytes that have not been transferred. The auto request sense command requests SENSE_LENGTH bytes.

sts_rqpkt_state has bit positions representing the five most important status that a SCSI command can go through.

sts_rqpkt_statistics maintains transport-related statistics of the request sense command.

sts_sensedata contains the actual sense data if the request sense command completed normally.

See Also

scsi_ifgetcap(9F) , scsi_init_pkt(9F) , scsi_extended_sense(9S) , scsi_pkt(9S)


Table of Contents