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

NAME

6       sata_scr_write - write SCR register of the specified port
7

SYNOPSIS

9       int sata_scr_write(struct ata_link * link, int reg, u32 val);
10

ARGUMENTS

12       link
13           ATA link to write SCR for
14
15       reg
16           SCR to write
17
18       val
19           value to write
20

DESCRIPTION

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

LOCKING

27       None if link is ap->link. Kernel thread context otherwise.
28

RETURNS

30       0 on success, negative errno on failure.
31

AUTHOR

33       Jeff Garzik
34           Author.
35
37Kernel Hackers Manual 2.6.       November 2011               SATA_SCR_WRITE(9)
Impressum