SCSI_EH_PREP_CMND(9) | SCSI mid layer | SCSI_EH_PREP_CMND(9) |
NAME¶
scsi_eh_prep_cmnd - Save a scsi command info as part of error recovery
SYNOPSIS¶
void scsi_eh_prep_cmnd(struct scsi_cmnd * scmd, struct scsi_eh_save * ses, unsigned char * cmnd, int cmnd_size, unsigned sense_bytes);
ARGUMENTS¶
struct scsi_cmnd * scmd
struct scsi_eh_save * ses
unsigned char * cmnd
int cmnd_size
unsigned sense_bytes
DESCRIPTION¶
This function is used to save a scsi command information before re-execution as part of the error recovery process. If sense_bytes is 0 the command sent must be one that does not transfer any data. If sense_bytes != 0 cmnd is ignored and this functions sets up a REQUEST_SENSE command and cmnd buffers to read sense_bytes into scmd->sense_buffer.
AUTHORS¶
James Bottomley <James.Bottomley@hansenpartnership.com>
Rob Landley <rob@landley.net>
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.12 |