1SATA_SCR_WRITE(9) libata Library SATA_SCR_WRITE(9)
2
3
4
6 sata_scr_write - write SCR register of the specified port
7
9 int sata_scr_write(struct ata_link * link, int reg, u32 val);
10
12 link
13 ATA link to write SCR for
14
15 reg
16 SCR to write
17
18 val
19 value to write
20
22 Write val to SCR register reg of link. 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_WRITE(9)