1ATA_SCSI_FIND_DEV(9)    libata SCSI translation/emulat    ATA_SCSI_FIND_DEV(9)
2
3
4

NAME

6       ata_scsi_find_dev - lookup ata_device from scsi_cmnd
7

SYNOPSIS

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

ARGUMENTS

13       ap
14           ATA port to which the device is attached
15
16       scsidev
17           SCSI device from which we derive the ATA device
18

DESCRIPTION

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

LOCKING

25       spin_lock_irqsave(host lock)
26

RETURNS

28       Associated ATA device, or NULL if not found.
29

AUTHOR

31       Jeff Garzik
32           Author.
33
35Kernel Hackers Manual 3.10         June 2019              ATA_SCSI_FIND_DEV(9)
Impressum