1SATA_SCR_READ(9) libata Library SATA_SCR_READ(9)
2
3
4
6 sata_scr_read - read SCR register of the specified port
7
9 int sata_scr_read(struct ata_link * link, int reg, u32 * val);
10
12 link
13 ATA link to read SCR for
14
15 reg
16 SCR to read
17
18 val
19 Place to store read value
20
22 Read SCR register reg of link into *val. This function is guaranteed to
23 succeed if link is ap->link, the cable type of the port is SATA and the
24 port implements ->scr_read.
25
27 None if link is ap->link. Kernel thread context otherwise.
28
30 0 on success, negative errno on failure.
31
33 Jeff Garzik
34 Author.
35
37Kernel Hackers Manual 2.6. June 2019 SATA_SCR_READ(9)