Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Configuring a System
Reconfiguring the Kernel (Prior to HP-UX 11i Version 2)
Chapter 3308
Step 1. To configure a loadable module for dynamic loading, execute this config
command:
/usr/sbin/config -M
module_name
-u
This results in the generation of a loadable image. The -u option forces
config to call the kmupdate command, which causes the system to move
the newly generated image into place and register it with the running
kernel.
How to register a
dynamically
configured
loadable module
with the HP-UX
kernel
For a DLKM module configured as dynamically loadable, you use the
kmupdate command to update its image and register it with the kernel.
Updating a dynamically configured loadable module’s image means
moving its image into place and registering it with the kernel either (1)
immediately or (2) later at system shutdown.
Call kmupdate after first calling config. If you include the -u option in
the config invocation, there is no need to invoke kmupdate. The config
-M -u command automatically invokes kmupdate.
Step 1. To update the image of a dynamically configured loadable module
immediately, execute this kmupdate command:
/usr/sbin/kmupdate -M
module_name
-i
After updating the specified module and assuming the module was
loaded originally, kmupdate will reload the module before exiting.
Step 2. To update the image of a dynamically configured loadable module at
system shutdown, execute the following kmupdate command:
/usr/sbin/kmupdate -M
module_name
-a
If you do not specify the -i or -a option, kmupdate will attempt to
update the specified loadable module immediately. If the module cannot
be updated immediately (for example, the current module is in use and
cannot be unloaded), the module will be updated at system shutdown.
How to load a
dynamically
configured
loadable module
into the HP-UX
kernel.
To load a dynamically configured loadable module, you use the -L option
of the kmadmin command. The load operation initiated by the kmadmin
-L command performs all tasks associated with link editing the module
to the running kernel and making the module accessible to the system.
Specifically, the load operation performs the following tasks: