'\" t .\" Title: scsi_eh_get_sense .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SCSI_EH_GET_SENSE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "SCSI mid layer" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" scsi_eh_get_sense \- Get device sense data\&. .SH "SYNOPSIS" .HP \w'int\ scsi_eh_get_sense('u .BI "int scsi_eh_get_sense(struct\ list_head\ *\ " "work_q" ", struct\ list_head\ *\ " "done_q" ");" .SH "ARGUMENTS" .PP \fIwork_q\fR .RS 4 Queue of commands to process\&. .RE .PP \fIdone_q\fR .RS 4 Queue of processed commands\&. .RE .SH "DESCRIPTION" .PP See if we need to request sense information\&. if so, then get it now, so we have a better idea of what to do\&. .SH "NOTES" .PP This has the unfortunate side effect that if a shost adapter does not automatically request sense information, we end up shutting it down before we request it\&. .PP All drivers should request sense information internally these days, so for now all I have to say is tough noogies if you end up in here\&. .PP XXX: Long term this code should go away, but that needs an audit of all LLDDs first\&. .SH "AUTHORS" .PP \fBJames Bottomley\fR <\&James.Bottomley@hansenpartnership.com\&> .RS 4 Author. .RE .PP \fBRob Landley\fR <\&rob@landley.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br