---
name: "ata_scsi_slave_destroy"
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_slave_destroy"
---

# ata\_scsi\_slave\_destroy(9)

SCSI device is about to be destroyed

## NAME

ata\_scsi\_slave\_destroy - SCSI device is about to be destroyed

## SYNOPSIS

**void ata\_scsi\_slave\_destroy(struct scsi\_device \*** *sdev***);**

## ARGUMENTS

*sdev*

SCSI device to be destroyed

## DESCRIPTION

*sdev* is about to be destroyed for hot/warm unplugging. If this unplugging was initiated by libata as indicated by NULL dev-\>sdev, this function doesn't have to do anything. Otherwise, SCSI layer initiated warm-unplug is in progress. Clear dev-\>sdev, schedule the device for ATA detach and invoke EH.

LOCKING: Defined by SCSI layer. We don't really care.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
