1ATA_WAIT_READY(9) libata Core Internals ATA_WAIT_READY(9)
2
3
4
6 ata_wait_ready - wait for link to become ready
7
9 int ata_wait_ready(struct ata_link * link, unsigned long deadline,
10 int (*check_ready) (struct ata_link *link));
11
13 link
14 link to be waited on
15
16 deadline
17 deadline jiffies for the operation
18
19 check_ready
20 callback to check link readiness
21
23 Wait for link to become ready. check_ready should return positive
24 number if link is ready, 0 if it isn't, -ENODEV if link doesn't seem to
25 be occupied, other errno for other error conditions.
26
27 Transient -ENODEV conditions are allowed for ATA_TMOUT_FF_WAIT.
28
30 EH context.
31
33 0 if linke is ready before deadline; otherwise, -errno.
34
36 Jeff Garzik
37 Author.
38
40Kernel Hackers Manual 2.6. November 2011 ATA_WAIT_READY(9)