---
name: "ata_busy_sleep"
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_busy_sleep"
---

# ata\_busy\_sleep(9)

sleep until BSY clears, or timeout

## NAME

ata\_busy\_sleep - sleep until BSY clears, or timeout

## SYNOPSIS

**int ata\_busy\_sleep(struct ata\_port \*** *ap***, unsigned long** *tmout\_pat***, unsigned long** *tmout***);**

## ARGUMENTS

*ap*

port containing status register to be polled

*tmout\_pat*

impatience timeout

*tmout*

overall timeout

## DESCRIPTION

Sleep until ATA Status register bit BSY clears, or a timeout occurs.

## LOCKING

Kernel thread context (may sleep).

## RETURNS

0 on success, -errno otherwise.

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
