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

NAME

6       ata_to_sense_error - convert ATA error to SCSI error
7

SYNOPSIS

9       void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 * sk,
10                               u8 * asc, u8 * ascq, int verbose);
11

ARGUMENTS

13       id
14           ATA device number
15
16       drv_stat
17           value contained in ATA status register
18
19       drv_err
20           value contained in ATA error register
21
22       sk
23           the sense key we´ll fill out
24
25       asc
26           the additional sense code we´ll fill out
27
28       ascq
29           the additional sense code qualifier we´ll fill out
30
31       verbose
32           be verbose
33

DESCRIPTION

35       Converts an ATA error into a SCSI error. Fill out pointers to SK, ASC,
36       and ASCQ bytes for later use in fixed or descriptor format sense
37       blocks.
38

LOCKING

40       spin_lock_irqsave(host lock)
41

AUTHOR

43       Jeff Garzik
44           Author.
45
47Kernel Hackers Manual 2.6.         June 2019             ATA_TO_SENSE_ERROR(9)
Impressum