1ATA_STD_PRERESET(9) libata Library ATA_STD_PRERESET(9)
2
3
4
6 ata_std_prereset - prepare for reset
7
9 int ata_std_prereset(struct ata_link * link, unsigned long deadline);
10
12 link
13 ATA link to be reset
14
15 deadline
16 deadline jiffies for the operation
17
19 link is about to be reset. Initialize it. Failure from prereset makes
20 libata abort whole reset sequence and give up that port, so prereset
21 should be best-effort. It does its best to prepare for reset sequence
22 but if things go wrong, it should just whine, not fail.
23
25 Kernel thread context (may sleep)
26
28 0 on success, -errno otherwise.
29
31 Jeff Garzik
32 Author.
33
35Kernel Hackers Manual 2.6. November 2011 ATA_STD_PRERESET(9)