1ATA_STD_PRERESET(9)             libata Library             ATA_STD_PRERESET(9)
2
3
4

NAME

6       ata_std_prereset - prepare for reset
7

SYNOPSIS

9       int ata_std_prereset(struct ata_link * link, unsigned long deadline);
10

ARGUMENTS

12       link
13           ATA link to be reset
14
15       deadline
16           deadline jiffies for the operation
17

DESCRIPTION

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

LOCKING

25       Kernel thread context (may sleep)
26

RETURNS

28       0 on success, -errno otherwise.
29

AUTHOR

31       Jeff Garzik
32           Author.
33
35Kernel Hackers Manual 2.6.         June 2019               ATA_STD_PRERESET(9)
Impressum