---
name: "sata_scr_read"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sata_scr_read"
---

# sata\_scr\_read(9)

read SCR register of the specified port

## 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

*link*

ATA link to read SCR for

*reg*

SCR to read

*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
