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