---
name: "ata_cmd_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/ata_cmd_ioctl"
---

# ata\_cmd\_ioctl(9)

Handler for HDIO\_DRIVE\_CMD ioctl

## NAME

ata\_cmd\_ioctl - Handler for HDIO\_DRIVE\_CMD ioctl

## SYNOPSIS

**int ata\_cmd\_ioctl(struct scsi\_device \*** *scsidev***, void \_\_user \*** *arg***);**

## ARGUMENTS

*scsidev*

Device to which we are issuing command

*arg*

User provided data for issuing command

## DESCRIPTION

LOCKING: Defined by the SCSI layer. We don't really care.

## RETURN

Zero on success, negative errno on error.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
