---
name: "ata_do_simple_cmd"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_do_simple_cmd"
---

# ata\_do\_simple\_cmd(9)

execute simple internal command

## NAME

ata\_do\_simple\_cmd - execute simple internal command

## SYNOPSIS

**unsigned int ata\_do\_simple\_cmd(struct ata\_device \*** *dev***, u8** *cmd***);**

## ARGUMENTS

*dev*

Device to which the command is sent

*cmd*

Opcode to execute

## DESCRIPTION

Execute a 'simple' command, that only consists of the opcode 'cmd' itself, without filling any other registers

## LOCKING

Kernel thread context (may sleep).

## RETURNS

Zero on success, AC\_ERR\_\* mask on failure

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
