ata_scsi_set_sense(9)

ata_scsi_set_sense9

Set scsi sense data and status

Usage

void ata_scsi_set_sense(struct scsi_cmnd * cmd, u8 sk, u8 asc, u8 ascq);

Arguments

cmd

SCSI request to be handled

sk

SCSI-defined sense key

asc

SCSI-defined additional sense code

ascq

SCSI-defined additional sense code qualifier

Overview

Helper function that builds a valid fixed format, current response code and the given sense key (sk), additional sense code (asc) and additional sense code qualifier (ascq) with a SCSI command status of SAM_STAT_CHECK_CONDITION and

Driver_sense set in the upper bits of scsi_cmnd

:result .

Locking

Not required

Author

Jeff Garzik

Author.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Also shipped by linux-manual-2.6.24. Parsed by carta from the page's man source.