Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ioat/ioat_test.c
Show All 12 Lines | |||||
enabled = (g_ioat_cdev != NULL); | enabled = (g_ioat_cdev != NULL); | ||||
error = sysctl_handle_int(oidp, &enabled, 0, req); | error = sysctl_handle_int(oidp, &enabled, 0, req); | ||||
if (error != 0 || req->newptr == NULL) | if (error != 0 || req->newptr == NULL) | ||||
return (error); | return (error); | ||||
enable_ioat_test(enabled); | enable_ioat_test(enabled); | ||||
return (0); | return (0); | ||||
} | } | ||||
SYSCTL_PROC(_hw_ioat, OID_AUTO, enable_ioat_test, CTLTYPE_INT | CTLFLAG_RW, | SYSCTL_PROC(_hw_ioat, OID_AUTO, enable_ioat_test, | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | |||||
0, 0, sysctl_enable_ioat_test, "I", | 0, 0, sysctl_enable_ioat_test, "I", | ||||
"Non-zero: Enable the /dev/ioat_test device"); | "Non-zero: Enable the /dev/ioat_test device"); | ||||
void | void | ||||
ioat_test_attach(void) | ioat_test_attach(void) | ||||
{ | { | ||||
char *val; | char *val; | ||||
Show All 12 Lines |