---
name: "ata_scsi_offline_dev"
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/ata_scsi_offline_dev"
---

# ata\_scsi\_offline\_dev(9)

offline attached SCSI device

## NAME

ata\_scsi\_offline\_dev - offline attached SCSI device

## SYNOPSIS

**int ata\_scsi\_offline\_dev(struct ata\_device \*** *dev***);**

## ARGUMENTS

*dev*

ATA device to offline attached SCSI device for

## DESCRIPTION

This function is called from **ata\_eh\_hotplug** and responsible for taking the SCSI device attached to *dev* offline. This function is called with host lock which protects dev-\>sdev against clearing.

LOCKING: spin\_lock\_irqsave(host lock)

## RETURN

1 if attached SCSI device exists, 0 otherwise.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
