---
name: "ata_std_prereset"
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_std_prereset"
---

# ata\_std\_prereset(9)

prepare for reset

## NAME

ata\_std\_prereset - prepare for reset

## SYNOPSIS

**int ata\_std\_prereset(struct ata\_link \*** *link***, unsigned long** *deadline***);**

## ARGUMENTS

*link*

ATA link to be reset

*deadline*

deadline jiffies for the operation

## DESCRIPTION

*link* is about to be reset. Initialize it. Failure from prereset makes libata abort whole reset sequence and give up that port, so prereset should be best-effort. It does its best to prepare for reset sequence but if things go wrong, it should just whine, not fail.

LOCKING: Kernel thread context (may sleep)

## RETURN

0 on success, -errno otherwise.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
