Document the usfs driver and the NO_SYSCTL_DESCR option, and update the comment for umass.

Don't include the sysctl description variables in aic7xxx when NO_SYSCTL_DESCR is used.

Approved by:	rrs (mentor)
This commit is contained in:
Rebecca Cran 2010-02-08 20:57:42 +00:00
parent c383d55b77
commit 31615ef723
2 changed files with 12 additions and 1 deletions

View File

@ -385,6 +385,11 @@ options KDTRACE_HOOKS
# #
options SYSCTL_DEBUG options SYSCTL_DEBUG
#
# NO_SYSCTL_DESCR omits the sysctl node descriptions to save space in the
# resulting kernel.
options NO_SYSCTL_DESCR
# #
# DEBUG_MEMGUARD builds and enables memguard(9), a replacement allocator # DEBUG_MEMGUARD builds and enables memguard(9), a replacement allocator
# for the kernel used to detect modify-after-free scenarios. See the # for the kernel used to detect modify-after-free scenarios. See the
@ -2596,8 +2601,10 @@ device uhid
device ukbd device ukbd
# USB printer # USB printer
device ulpt device ulpt
# USB Iomega Zip 100 Drive (Requires scbus and da) # USB mass storage driver (Requires scbus and da)
device umass device umass
# USB mass storage driver for device-side mode
device usfs
# USB support for Belkin F5U109 and Magic Control Technology serial adapters # USB support for Belkin F5U109 and Magic Control Technology serial adapters
device umct device umct
# USB modem support # USB modem support

View File

@ -83,11 +83,13 @@ static const char *ahd_sysctl_node_elements[] = {
"debug" "debug"
}; };
#ifndef NO_SYSCTL_DESCR
static const char *ahd_sysctl_node_descriptions[] = { static const char *ahd_sysctl_node_descriptions[] = {
"root error collection for aic79xx controllers", "root error collection for aic79xx controllers",
"summary collection for aic79xx controllers", "summary collection for aic79xx controllers",
"debug collection for aic79xx controllers" "debug collection for aic79xx controllers"
}; };
#endif
static const char *ahd_sysctl_errors_elements[] = { static const char *ahd_sysctl_errors_elements[] = {
"Cerrors", "Cerrors",
@ -95,11 +97,13 @@ static const char *ahd_sysctl_errors_elements[] = {
"Ferrors" "Ferrors"
}; };
#ifndef NO_SYSCTL_DESCR
static const char *ahd_sysctl_errors_descriptions[] = { static const char *ahd_sysctl_errors_descriptions[] = {
"Correctable errors", "Correctable errors",
"Uncorrectable errors", "Uncorrectable errors",
"Fatal errors" "Fatal errors"
}; };
#endif
static int static int
ahd_set_debugcounters(SYSCTL_HANDLER_ARGS) ahd_set_debugcounters(SYSCTL_HANDLER_ARGS)