ATA_WAIT_READY(9) | libata Core Internals | ATA_WAIT_READY(9) |
NAME¶
ata_wait_ready - wait for link to become ready
SYNOPSIS¶
int ata_wait_ready(struct ata_link * link, unsigned long deadline, int (*check_ready) (struct ata_link *link));
ARGUMENTS¶
struct ata_link * link
unsigned long deadline
int (*)(struct ata_link *link) check_ready
DESCRIPTION¶
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.
AUTHOR¶
Jeff Garzik
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |