ATA_STD_PRERESET(9) libata Library ATA_STD_PRERESET(9)NAMEata_std_prereset - prepare for reset
int ata_std_prereset(struct ata_link * link, unsigned long deadline);
ATA link to be reset
deadline jiffies for the operation
link is about to be reset. Initialize it. Failure from prereset makes
libata abort whole reset sequence and give up that port, so prereset
should be best-effort. It does its best to prepare for reset sequence
but if things go wrong, it should just whine, not fail.
Kernel thread context (may sleep)
0 on success, -errno otherwise.
COPYRIGHTKernel Hackers Manual 3.8. June 2014 ATA_STD_PRERESET(9)