ata_scsi_find_dev(9)

ata_scsi_find_dev9

Lookup ata_device from scsi_cmnd

Usage

struct ata_device * ata_scsi_find_dev(struct ata_port * ap, const struct scsi_device * scsidev);

Arguments

ap

ATA port to which the device is attached

scsidev

SCSI device from which we derive the ATA device

Overview

Given various information provided in struct scsi_cmnd, map that onto an ATA bus, and using that mapping determine which ata_device is associated with the SCSI command to be sent.

LOCKING: spin_lock_irqsave(host lock)

Return

Associated ATA device, or NULL if not found.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

Author

Jeff Garzik

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.