~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/scsi/scsi_eh.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/scsi/scsi_eh.h (Version linux-6.12-rc7) and /include/scsi/scsi_eh.h (Version linux-6.4.16)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _SCSI_SCSI_EH_H                             2 #ifndef _SCSI_SCSI_EH_H
  3 #define _SCSI_SCSI_EH_H                             3 #define _SCSI_SCSI_EH_H
  4                                                     4 
  5 #include <linux/scatterlist.h>                      5 #include <linux/scatterlist.h>
  6                                                     6 
  7 #include <scsi/scsi_cmnd.h>                         7 #include <scsi/scsi_cmnd.h>
  8 #include <scsi/scsi_common.h>                       8 #include <scsi/scsi_common.h>
  9 struct scsi_device;                                 9 struct scsi_device;
 10 struct Scsi_Host;                                  10 struct Scsi_Host;
 11                                                    11 
 12 extern void scsi_eh_finish_cmd(struct scsi_cmn     12 extern void scsi_eh_finish_cmd(struct scsi_cmnd *scmd,
 13                                struct list_hea     13                                struct list_head *done_q);
 14 extern void scsi_eh_flush_done_q(struct list_h     14 extern void scsi_eh_flush_done_q(struct list_head *done_q);
 15 extern void scsi_report_bus_reset(struct Scsi_     15 extern void scsi_report_bus_reset(struct Scsi_Host *, int);
 16 extern void scsi_report_device_reset(struct Sc     16 extern void scsi_report_device_reset(struct Scsi_Host *, int, int);
 17 extern int scsi_block_when_processing_errors(s     17 extern int scsi_block_when_processing_errors(struct scsi_device *);
 18 extern bool scsi_command_normalize_sense(const     18 extern bool scsi_command_normalize_sense(const struct scsi_cmnd *cmd,
 19                                          struc     19                                          struct scsi_sense_hdr *sshdr);
 20 extern enum scsi_disposition scsi_check_sense(     20 extern enum scsi_disposition scsi_check_sense(struct scsi_cmnd *);
 21                                                    21 
 22 static inline bool scsi_sense_is_deferred(cons     22 static inline bool scsi_sense_is_deferred(const struct scsi_sense_hdr *sshdr)
 23 {                                                  23 {
 24         return ((sshdr->response_code >= 0x70)     24         return ((sshdr->response_code >= 0x70) && (sshdr->response_code & 1));
 25 }                                                  25 }
 26                                                    26 
 27 extern bool scsi_get_sense_info_fld(const u8 *     27 extern bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len,
 28                                     u64 *info_     28                                     u64 *info_out);
 29                                                    29 
 30 extern int scsi_ioctl_reset(struct scsi_device     30 extern int scsi_ioctl_reset(struct scsi_device *, int __user *);
 31                                                    31 
 32 struct scsi_eh_save {                              32 struct scsi_eh_save {
 33         /* saved state */                          33         /* saved state */
 34         int result;                                34         int result;
 35         unsigned int resid_len;                    35         unsigned int resid_len;
 36         int eh_eflags;                             36         int eh_eflags;
 37         enum dma_data_direction data_direction     37         enum dma_data_direction data_direction;
 38         unsigned underflow;                        38         unsigned underflow;
 39         unsigned char cmd_len;                     39         unsigned char cmd_len;
 40         unsigned char prot_op;                     40         unsigned char prot_op;
 41         unsigned char cmnd[32];                    41         unsigned char cmnd[32];
 42         struct scsi_data_buffer sdb;               42         struct scsi_data_buffer sdb;
 43         struct scatterlist sense_sgl;              43         struct scatterlist sense_sgl;
 44 };                                                 44 };
 45                                                    45 
 46 extern void scsi_eh_prep_cmnd(struct scsi_cmnd     46 extern void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd,
 47                 struct scsi_eh_save *ses, unsi     47                 struct scsi_eh_save *ses, unsigned char *cmnd,
 48                 int cmnd_size, unsigned sense_     48                 int cmnd_size, unsigned sense_bytes);
 49                                                    49 
 50 extern void scsi_eh_restore_cmnd(struct scsi_c     50 extern void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd,
 51                 struct scsi_eh_save *ses);         51                 struct scsi_eh_save *ses);
 52                                                    52 
 53 #endif /* _SCSI_SCSI_EH_H */                       53 #endif /* _SCSI_SCSI_EH_H */
 54                                                    54 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php