---
name: "ata_do_set_mode"
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_do_set_mode"
---

# ata\_do\_set\_mode(9)

Program timings and issue SET FEATURES - XFER

## NAME

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

## SYNOPSIS

**int ata\_do\_set\_mode(struct ata\_link \*** *link***, struct ata\_device \*\*** *r\_failed\_dev***);**

## ARGUMENTS

*link*

link on which timings will be programmed

*r\_failed\_dev*

out parameter for failed device

## DESCRIPTION

Standard implementation of the function used to tune and set ATA device disk transfer mode (PIO3, UDMA6, etc.). If **ata\_dev\_set\_mode** fails, pointer to the failing device is returned in *r\_failed\_dev*.

LOCKING: PCI/etc. bus probe sem.

## RETURN

0 on success, negative errno otherwise

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
