ata_busy_sleep(9)

ata_busy_sleep9

Sleep until bsy clears, or timeout

Usage

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

Overview

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.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Also shipped by linux-manual-2.6.24. Parsed by carta from the page's man source.