---
name: "sata_scr_write"
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_write"
---

# sata\_scr\_write(9)

write SCR register of the specified port

## NAME

sata\_scr\_write - write SCR register of the specified port

## SYNOPSIS

**int sata\_scr\_write(struct ata\_link \*** *link***, int** *reg***, u32** *val***);**

## ARGUMENTS

*link*

ATA link to write SCR for

*reg*

SCR to write

*val*

value to write

## DESCRIPTION

Write *val* to SCR register *reg* of *link*. 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
