ata_wait_ready(9)

ata_wait_ready9

Wait for link to become ready

Usage

int ata_wait_ready(struct ata_link * link, unsigned long deadline, int (*check_ready) (struct ata_link *link));

Arguments

link

link to be waited on

deadline

deadline jiffies for the operation

check_ready

callback to check link readiness

Overview

Wait for link to become ready. check_ready should return positive number if link is ready, 0 if it isn't, -ENODEV if link doesn't seem to be occupied, other errno for other error conditions.

Transient -ENODEV conditions are allowed for ATA_TMOUT_FF_WAIT.

LOCKING: EH context.

Return

0 if link is ready before deadline; otherwise, -errno.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

Author

Jeff Garzik

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.