'\" t .\" Title: scsi_ioctl .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "SCSI_IOCTL" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "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_ioctl \- Dispatch ioctl to scsi device .SH "SYNOPSIS" .HP \w'int\ scsi_ioctl('u .BI "int scsi_ioctl(struct\ scsi_device\ *\ " "sdev" ", int\ " "cmd" ", void\ __user\ *\ " "arg" ");" .SH "ARGUMENTS" .PP \fIstruct scsi_device * sdev\fR .RS 4 scsi device receiving ioctl .RE .PP \fIint cmd\fR .RS 4 which ioctl is it .RE .PP \fIvoid __user * arg\fR .RS 4 data associated with ioctl .RE .SH "DESCRIPTION" .PP The \fBscsi_ioctl\fR function differs from most ioctls in that it does not take a major/minor number as the dev field\&. Rather, it takes a pointer to a struct scsi_device\&. .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