1SCSI_NORMALIZE_SENSE(9) SCSI mid layer SCSI_NORMALIZE_SENSE(9)
2
3
4
6 scsi_normalize_sense - normalize main elements from either fixed or
7 descriptor sense data format into a common format.
8
10 int scsi_normalize_sense(const u8 * sense_buffer, int sb_len,
11 struct scsi_sense_hdr * sshdr);
12
14 sense_buffer
15 byte array containing sense data returned by device
16
17 sb_len
18 number of valid bytes in sense_buffer
19
20 sshdr
21 pointer to instance of structure that common elements are written
22 to.
23
25 The “main elements” from sense data are: response_code, sense_key, asc,
26 ascq and additional_length (only for descriptor format).
27
28 Typically this function can be called after a device has responded to a
29 SCSI command with the CHECK_CONDITION status.
30
32 1 if valid sense data information found, else 0;
33
35 James Bottomley <James.Bottomley@hansenpartnership.com>
36 Author.
37
38 Rob Landley <rob@landley.net>
39 Author.
40
42Kernel Hackers Manual 2.6. November 2011 SCSI_NORMALIZE_SENSE(9)