---
name: "ata_scsi_device_suspend"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_scsi_device_suspend"
---

# ata\_scsi\_device\_suspend(9)

suspend ATA device associated with sdev

## NAME

ata\_scsi\_device\_suspend - suspend ATA device associated with sdev

## SYNOPSIS

**int ata\_scsi\_device\_suspend(struct scsi\_device \*** *sdev***, pm\_message\_t** *state***);**

## ARGUMENTS

*sdev*

the SCSI device to suspend

*state*

target power management state

## DESCRIPTION

Request suspend EH action on the ATA device associated with *sdev* and wait for the operation to complete.

## LOCKING

Kernel thread context (may sleep).

## RETURNS

0 on success, -errno otherwise.

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
