1SCSI_EH_PREP_CMND(9)            SCSI mid layer            SCSI_EH_PREP_CMND(9)
2
3
4

NAME

6       scsi_eh_prep_cmnd - Save a scsi command info as part of error recovery
7

SYNOPSIS

9       void scsi_eh_prep_cmnd(struct scsi_cmnd * scmd,
10                              struct scsi_eh_save * ses, unsigned char * cmnd,
11                              int cmnd_size, unsigned sense_bytes);
12

ARGUMENTS

14       scmd
15           SCSI command structure to hijack
16
17       ses
18           structure to save restore information
19
20       cmnd
21           CDB to send. Can be NULL if no new cmnd is needed
22
23       cmnd_size
24           size in bytes of cmnd (must be <= BLK_MAX_CDB)
25
26       sense_bytes
27           size of sense data to copy. or 0 (if != 0 cmnd is ignored)
28

DESCRIPTION

30       This function is used to save a scsi command information before
31       re-execution as part of the error recovery process. If sense_bytes is 0
32       the command sent must be one that does not transfer any data. If
33       sense_bytes != 0 cmnd is ignored and this functions sets up a
34       REQUEST_SENSE command and cmnd buffers to read sense_bytes into
35       scmd->sense_buffer.
36

AUTHORS

38       James Bottomley <James.Bottomley@hansenpartnership.com>
39           Author.
40
41       Rob Landley <rob@landley.net>
42           Author.
43
45Kernel Hackers Manual 3.10         June 2019              SCSI_EH_PREP_CMND(9)
Impressum