.\" 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_MODE_SENSE" "" "06 October 2005" "" ""
.SH NAME
__scsi_mode_sense \- issue a mode sense, falling back from 10 to
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int __scsi_mode_sense (struct scsi_request * \fIsreq\fB, int \fIdbd\fB, int \fImodepage\fB, unsigned char * \fIbuffer\fB, int \fIlen\fB, int \fItimeout\fB, int \fIretries\fB, struct scsi_mode_data * \fIdata\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsreq\fB\fR
SCSI request to fill in with the MODE_SENSE
.TP
\fB\fIdbd\fB\fR
set if mode sense will allow block descriptors to be returned
.TP
\fB\fImodepage\fB\fR
mode page being requested
.TP
\fB\fIbuffer\fB\fR
request buffer (may not be smaller than eight bytes)
.TP
\fB\fIlen\fB\fR
length of request buffer.
.TP
\fB\fItimeout\fB\fR
command timeout
.TP
\fB\fIretries\fB\fR
number of retries before failing
.TP
\fB\fIdata\fB\fR
returns a structure abstracting the mode header data
.SH "DESCRIPTION"
.PP
Returns zero if unsuccessful, or the header offset (either 4
or 8 depending on whether a six or ten byte command was
issued) if successful.
.SH "DESCRIPTION"
.PP
Returns zero if unsuccessful, or the header offset (either 4
or 8 depending on whether a six or ten byte command was
issued) if successful.