Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_all.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 9,302 Lines • ▼ Show 20 Lines | init_scsi_delay(void) | ||||
delay = SCSI_DELAY; | delay = SCSI_DELAY; | ||||
TUNABLE_INT_FETCH("kern.cam.scsi_delay", &delay); | TUNABLE_INT_FETCH("kern.cam.scsi_delay", &delay); | ||||
if (set_scsi_delay(delay) != 0) { | if (set_scsi_delay(delay) != 0) { | ||||
printf("cam: invalid value for tunable kern.cam.scsi_delay\n"); | printf("cam: invalid value for tunable kern.cam.scsi_delay\n"); | ||||
set_scsi_delay(SCSI_DELAY); | set_scsi_delay(SCSI_DELAY); | ||||
} | } | ||||
} | } | ||||
SYSINIT(scsi_delay, SI_SUB_TUNABLES, SI_ORDER_ANY, init_scsi_delay, NULL); | SYSINIT(scsi_delay, SI_SUB_TUNABLES, SI_ORDER_ANY, init_scsi_delay); | ||||
static int | static int | ||||
sysctl_scsi_delay(SYSCTL_HANDLER_ARGS) | sysctl_scsi_delay(SYSCTL_HANDLER_ARGS) | ||||
{ | { | ||||
int error, delay; | int error, delay; | ||||
delay = scsi_delay; | delay = scsi_delay; | ||||
error = sysctl_handle_int(oidp, &delay, 0, req); | error = sysctl_handle_int(oidp, &delay, 0, req); | ||||
Show All 26 Lines |