---
name: "ata_set_mode"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_set_mode"
---

# ata\_set\_mode(9)

Program timings and issue SET FEATURES - XFER

## NAME

ata\_set\_mode - Program timings and issue SET FEATURES - XFER

## SYNOPSIS

**int ata\_set\_mode(struct ata\_port \*** *ap***, struct ata\_device \*\*** *r\_failed\_dev***);**

## ARGUMENTS

*ap*

port on which timings will be programmed

*r\_failed\_dev*

out paramter for failed device

## DESCRIPTION

Set ATA device disk transfer mode (PIO3, UDMA6, etc.). If **ata\_set\_mode** fails, pointer to the failing device is returned in *r\_failed\_dev*.

## LOCKING

PCI/etc. bus probe sem.

## RETURNS

0 on success, negative errno otherwise

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
