Scroll to navigation

SATA_SCR_WRITE_FLUSH(9) libata Library SATA_SCR_WRITE_FLUSH(9)

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

struct ata_link * link

ATA link to write SCR for

int reg

SCR to write

u32 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

July 2017 Kernel Hackers Manual 4.12