'\" t
.\"     Title: scsi_ioctl
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\"      Date: June 2017
.\"    Manual: SCSI mid layer
.\"    Source: Kernel Hackers Manual 4.9.30
.\"  Language: English
.\"
.TH "SCSI_IOCTL" "9" "June 2017" "Kernel Hackers Manual 4\&.9\&." "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
\fIsdev\fR
.RS 4
scsi device receiving ioctl
.RE
.PP
\fIcmd\fR
.RS 4
which ioctl is it
.RE
.PP
\fIarg\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
