1. NAME▲
ata_wait_ready - wait for link to become ready
2. SYNOPSIS ▲
int ata_wait_ready(struct ata_link * link , unsigned long deadline , int (* check_ready ) (struct ata_link *link));
3. ARGUMENTS ▲
link
link to be waited on
deadline
deadline jiffies for the operation
check_ready
callback to check link readiness
4. DESCRIPTION ▲
Wait for link to become ready. check_ready should return positive number if link is ready, 0 if it isnAqt, -ENODEV if link doesnAqt seem to be occupied, other errno for other error conditions.
Transient -ENODEV conditions are allowed for ATA_TMOUT_FF_WAIT.
5. LOCKING ▲
EH context.
6. RETURNS ▲
0 if linke is ready before deadline; otherwise, -errno.
7. AUTHOR ▲
Jeff Garzik
Author.
8. COPYRIGHT ▲