HP-UX System Administrator's Guide: Configuration Management
–n (next boot); when explicitly discarded using kconfig –H (unhold); or when
subsequent changes are made that override them. For example, if you run.
# kctune –h nproc=5000 # set to 5000, hold for next boot
# kctune nproc=6000 # set to 6000, now
the value of nproc at next boot will be 6000. The change to 5000 is discarded. A warning
will be printed in these situations.
Changes that are made to the currently running system are retained when the system
is rebooted. They remain in effect until changed.
Managing Kernel Modules with kcmodule
The kcmodule command queries and changes the states of kernel modules in the
currently running configuration or in a saved configuration. The HP-UX kernel is built
from a number of modules, each of which is a device driver, kernel subsystem, or some
other body of kernel code. A typical kernel has 200-300 modules in it.
Getting Information About Modules
When you run kcmodule with no options, it shows you the modules on your system,
their current state, and the state they will have at next boot. On a typical system, you
will see many modules in static state; some modules that are unused, which are often
device drivers for hardware your system doesn’t have; and a handful of modules in
loaded state. The states are described below.
NOTE: The kcmodule options are listed in Table 10-1 (page 157).
When you use the -c (configuration) option, kcmodule displays the module
information from a saved configuration instead of the currently running system.
The output of kcmodule can be varied with several options. To control which modules
are listed, use the -a (all), -D (differences), and/or -S (set) options. The -a option adds
required modules to the output (normally they are omitted). The -D option restricts
the output to only those modules whose state at next boot is different from their current
state. The -S option restricts the output to modules whose state has been explicitly set
(that is, it omits required modules, unused modules, and modules added to satisfy a
dependency). The output can also be restricted by listing module names on the command
line.
To control the output format, use the -d (description), -v (verbose), or -P (parse)
options.
With No Options
With no options, the output looks like this:
# kcmodule KeyboardMUX PCItoPCI autofs cachefs cifs rng vxportal wsio
Module State Cause Notes
KeyboardMUX unused
160 Configuring the Kernel