ata_scsi_badcmd(9)

ata_scsi_badcmd9

End a scsi request with an error

Usage

void ata_scsi_badcmd(struct scsi_cmnd * cmd, void (*done) (struct scsi_cmnd *), u8 asc, u8 ascq);

Arguments

cmd

SCSI request to be handled

done

SCSI command completion function

asc

SCSI-defined additional sense code

ascq

SCSI-defined additional sense code qualifier

Overview

Helper function that completes a SCSI command with SAM_STAT_CHECK_CONDITION, with a sense key ILLEGAL_REQUEST and the specified additional sense codes.

Locking

spin_lock_irqsave(host_set lock)

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.