struct scsi_fixed_sense_data

The format of the data returned by the SCSI REQUEST SENSE command. SCSI Primary Commands - 2 (SPC-2) ANSI Project T10/1236-D Revision 20 18 July 2001 page 135 7.20.1 REQUEST SENSE command introduction “Device servers shall be capable of returning 18 bytes of data

in response to a REQUEST SENSE command.” page 136 7.20.2 Sense data format Table 102 Response codes 70h and 71h sense data format

This structure is the minimum a device can return. The file linux/drivers/scsi/scsi.h defines the maximum acceptable as: #define SCSI_SENSE_BUFFERSIZE 64 unsigned char sr_sense_buffer[SCSI_SENSE_BUFFERSIZE]; unsigned char sense_buffer[SCSI_SENSE_BUFFERSIZE];

#include <te_iscsi.h>

struct scsi_fixed_sense_data {
    // fields

    uint8_t response;
    uint8_t obsolete;
    uint8_t sense_key_and_flags;
    uint32_t information;
    uint8_t additional_length;
    uint32_t csi;
    uint8_t asc;
    uint8_t ascq;
    uint8_t fruc;
    uint8_t sks[3];
};