---
name: "ata_rwcmd_protocol"
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_rwcmd_protocol"
---

# ata\_rwcmd\_protocol(9)

set taskfile r/w commands and protocol

## NAME

ata\_rwcmd\_protocol - set taskfile r/w commands and protocol

## SYNOPSIS

**int ata\_rwcmd\_protocol(struct ata\_taskfile \*** *tf***, struct ata\_device \*** *dev***);**

## ARGUMENTS

*tf*

command to examine and configure

*dev*

device tf belongs to

## DESCRIPTION

Examine the device configuration and tf-\>flags to calculate the proper read/write commands and protocol to use.

LOCKING: caller.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
