Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_cd.c
Show All 12 Lines | |||||
return; | return; | ||||
} | } | ||||
/* | /* | ||||
* Now register the sysctl handler, so the user can the value on | * Now register the sysctl handler, so the user can the value on | ||||
* the fly. | * the fly. | ||||
*/ | */ | ||||
SYSCTL_ADD_PROC(&softc->sysctl_ctx,SYSCTL_CHILDREN(softc->sysctl_tree), | SYSCTL_ADD_PROC(&softc->sysctl_ctx,SYSCTL_CHILDREN(softc->sysctl_tree), | ||||
OID_AUTO, "minimum_cmd_size", CTLTYPE_INT | CTLFLAG_RW, | OID_AUTO, "minimum_cmd_size", | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | |||||
&softc->minimum_command_size, 0, cdcmdsizesysctl, "I", | &softc->minimum_command_size, 0, cdcmdsizesysctl, "I", | ||||
"Minimum CDB size"); | "Minimum CDB size"); | ||||
cam_periph_release(periph); | cam_periph_release(periph); | ||||
} | } | ||||
/* | /* | ||||
* We have a handler function for this so we can check the values when the | * We have a handler function for this so we can check the values when the | ||||
Show All 12 Lines |