Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ctl/ctl_frontend_cam_sim.c
Show All 12 Lines | |||||
struct cfcs_softc cfcs_softc; | struct cfcs_softc cfcs_softc; | ||||
/* | /* | ||||
* This is primarily intended to allow for error injection to test the CAM | * This is primarily intended to allow for error injection to test the CAM | ||||
* sense data and sense residual handling code. This sets the maximum | * sense data and sense residual handling code. This sets the maximum | ||||
* amount of SCSI sense data that we will report to CAM. | * amount of SCSI sense data that we will report to CAM. | ||||
*/ | */ | ||||
static int cfcs_max_sense = sizeof(struct scsi_sense_data); | static int cfcs_max_sense = sizeof(struct scsi_sense_data); | ||||
SYSCTL_NODE(_kern_cam, OID_AUTO, ctl2cam, CTLFLAG_RD, 0, | SYSCTL_NODE(_kern_cam, OID_AUTO, ctl2cam, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"CAM Target Layer SIM frontend"); | "CAM Target Layer SIM frontend"); | ||||
SYSCTL_INT(_kern_cam_ctl2cam, OID_AUTO, max_sense, CTLFLAG_RW, | SYSCTL_INT(_kern_cam_ctl2cam, OID_AUTO, max_sense, CTLFLAG_RW, | ||||
&cfcs_max_sense, 0, "Maximum sense data size"); | &cfcs_max_sense, 0, "Maximum sense data size"); | ||||
static struct ctl_frontend cfcs_frontend = | static struct ctl_frontend cfcs_frontend = | ||||
{ | { | ||||
.name = "camsim", | .name = "camsim", | ||||
.init = cfcs_init, | .init = cfcs_init, | ||||
.shutdown = cfcs_shutdown, | .shutdown = cfcs_shutdown, | ||||
Show All 12 Lines |