'\" t .\" Title: ata_scsiop_mode_sense .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: libata SCSI translation/emulation .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "ATA_SCSIOP_MODE_SENS" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "libata SCSI translation/emulat" .\" ----------------------------------------------------------------- .\" * 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" ata_scsiop_mode_sense \- Simulate MODE SENSE 6, 10 commands .SH "SYNOPSIS" .HP \w'unsigned\ int\ ata_scsiop_mode_sense('u .BI "unsigned int ata_scsiop_mode_sense(struct\ ata_scsi_args\ *\ " "args" ", u8\ *\ " "rbuf" ");" .SH "ARGUMENTS" .PP \fIstruct ata_scsi_args * args\fR .RS 4 device IDENTIFY data / SCSI command of interest\&. .RE .PP \fIu8 * rbuf\fR .RS 4 Response buffer, to which simulated SCSI cmd output is sent\&. .RE .SH "DESCRIPTION" .PP Simulate MODE SENSE commands\&. Assume this is invoked for direct access devices (e\&.g\&. disks) only\&. There should be no block descriptor for other device types\&. .PP LOCKING: spin_lock_irqsave(host lock) .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br