1. NAME▲

ata_scsi_offline_dev - offline attached SCSI device

2. SYNOPSIS ▲

int ata_scsi_offline_dev(struct ata_device *  dev );

3. ARGUMENTS ▲

dev
    ATA device to offline attached SCSI device for

4. 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.

5. LOCKING ▲

spin_lock_irqsave(host lock)

6. RETURNS ▲

1 if attached SCSI device exists, 0 otherwise.

7. AUTHOR ▲

Jeff Garzik
    Author.

8. COPYRIGHT ▲