Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Configuring a System
Reconfiguring the Kernel (HP-UX 11i Version 2)
Chapter 3 325
Managing Kernel Modules with kcmodule
The kcmodule command is used to query and change 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.)
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. Without these options, the output looks like this:
Module State Cause
fcms static depend
krs static required
The -d option adds the description of each module.
Module State Cause Description
fcms static depend Fibre Channel Mass Storage Driver
krs static required Kernel Registry Service
The -v option gives verbose, multiline information about each module: