other versions
SATA_SCR_READ(9) | libata Library | SATA_SCR_READ(9) |
NAME¶
sata_scr_read - read SCR register of the specified port
SYNOPSIS¶
int sata_scr_read(struct ata_link * link, int reg, u32 * val);
ARGUMENTS¶
struct ata_link * link
ATA link to read SCR for
int reg
SCR to read
u32 * val
Place to store read value
DESCRIPTION¶
Read SCR register reg of link into *val. This function is guaranteed to succeed if link is ap->link, the cable type of the port is SATA and the port implements ->scr_read.
LOCKING: None if link is ap->link. Kernel thread context otherwise.
RETURN¶
0 on success, negative errno on failure.
AUTHOR¶
Jeff Garzik
Author.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |