include/scsi/scsi_eh.h

Source file repositories/reference/linux-study-clean/include/scsi/scsi_eh.h

File Facts

System
Linux kernel
Corpus path
include/scsi/scsi_eh.h
Extension
.h
Size
1769 bytes
Lines
60
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

struct scsi_eh_save {
	/* saved state */
	int result;
	unsigned int resid_len;
	int eh_eflags;
	enum dma_data_direction data_direction;
	unsigned underflow;
	unsigned char cmd_len;
	unsigned char prot_op;
	unsigned char cmnd[32];
	struct scsi_data_buffer sdb;
	struct scatterlist sense_sgl;

	/* struct request fields */
#ifdef CONFIG_BLK_INLINE_ENCRYPTION
	struct bio_crypt_ctx *rq_crypt_ctx;
	struct blk_crypto_keyslot *rq_crypt_keyslot;
#endif
};

extern void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd,
		struct scsi_eh_save *ses, unsigned char *cmnd,
		int cmnd_size, unsigned sense_bytes);

extern void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd,
		struct scsi_eh_save *ses);

#endif /* _SCSI_SCSI_EH_H */

Annotation

Implementation Notes