---
name: "scsi_ioctl"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_ioctl"
---

# scsi\_ioctl(9)

Dispatch ioctl to scsi device

## NAME

scsi\_ioctl - Dispatch ioctl to scsi device

## SYNOPSIS

**int scsi\_ioctl(struct scsi\_device \*** *sdev***, int** *cmd***, void \_\_user \*** *arg***);**

## ARGUMENTS

*sdev*

scsi device receiving ioctl

*cmd*

which ioctl is it

*arg*

data associated with ioctl

## DESCRIPTION

The **scsi\_ioctl** 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.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
