---
name: "sata_scr_write_flush"
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_flush"
---

# sata\_scr\_write\_flush(9)

write SCR register of the specified port and flush

## NAME

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

## SYNOPSIS

**int sata\_scr\_write\_flush(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

This function is identical to **sata\_scr\_write** except that this function performs flush after writing to the register.

LOCKING: None if *link* is ap-\>link. Kernel thread context otherwise.

## RETURN

0 on success, negative errno on failure.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
