.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SCSI_NORMALIZE_SENSE" "9" "09 October 2005" "" ""
.SH NAME
scsi_normalize_sense \- normalize main elements from either fixed or
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int scsi_normalize_sense (const u8 * \fIsense_buffer\fB, int \fIsb_len\fB, struct scsi_sense_hdr * \fIsshdr\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsense_buffer\fB\fR
byte array containing sense data returned by device
.TP
\fB\fIsb_len\fB\fR
number of valid bytes in sense_buffer
.TP
\fB\fIsshdr\fB\fR
pointer to instance of structure that common
elements are written to.
.SH "DESCRIPTION"
.PP
descriptor sense data format into a common format.
.SH "NOTES"
.PP
The ``main elements'' from sense data are: response_code, sense_key,
asc, ascq and additional_length (only for descriptor format).
.PP
Typically this function can be called after a device has
responded to a SCSI command with the CHECK_CONDITION status.
.SH "RETURN VALUE"
.PP
1 if valid sense data information found, else 0;