Managing and Developing Dynamically Loadable Kernel Modules

Managing and Developing Dynamically Loadable Kernel Modules
Managing Dynamically Loadable Kernel Modules
Chapter 12 521
Whole HP-UX Kernel Configuration to Include a Statically Configured
Loadable Module
When configuring a DLKM module into the system as statically
configured, config builds an entire kernel, that is, configures the static
kernel and all kernel modules. For a whole kernel configuration, config
proceeds as follows:
1. Reads the traditional and modular master configuration files for the
kernel modules
2. Reads the HP-UX system file
3. Reads the system description files for the kernel modules
4. Checks the interface functions or symbols used by the kernel modules
5. Generates several C output files (including two makefiles named
config.mk and config.mod) describing the system configuration
6. Executes the config.mod makefile to configure any dynamically
loadable modules associated with the new kernel
7. Executes the config.mk makefile to configure a new kernel, to link
the kernel with the appropriate kernel libraries associated with
traditional modules, and with the statically linked modules, and to
generate the kernel symbol table
8. Places the newly generated static kernel file (vmunix_test) in the
/stand/build directory
9. Places the generated symbol table file (symtab) and generated
dynamically loadable module image files (
module_names
) under the
kernel function set directory associated with the newly generated
kernel.
10.Generates a kernel-specific KRS file that includes the module
registration information associated with the newly generated kernel.
NOTE A whole kernel configuration generates several files that will make up
the kernel component set for the new kernel. After a whole kernel
configuration, a kernel update (see next section) and a system shutdown
and restart are required to be able to make the newly configured kernel
the active kernel. The kernel update step, initiated with the kmupdate
command or config -u, is now a required step to be able to successfully