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 3 309
checks what other modules the loadable module depends upon and
automatically loads any such module that is not currently loaded
allocates space in active memory for the specified loadable module
loads the specified loadable module from the disk and link-edits it
into the running kernel
relocates the loadable module’s symbols and resolves any references
the module makes to external symbols
calls the module’s _load() entry point to do any module-specific
initialization and setup
logically connects the module to the rest of the kernel, which is often
accomplished with the help of module type-specific installation
functions accessed through the module’s wrapper code
Step 1. To load a dynamically configured loadable module into the running
kernel, execute the following kmadmin command:
/usr/sbin/kmadmin -L module_name
When the loading completes, an identifier (ID) number prints on the
standard output to identify the module that was loaded.
If you want the system to automatically load certain dynamically
configured loadable modules immediately after every system reboot, add
the names of the modules to the /etc/loadmods file. At boot time, the
/sbin/init.d/kminit script will execute the kmadmin command and
load the modules listed in /etc/loadmods.
How to unload a
dynamically
configured
loadable module
Use the -U or -u option of the kmadmin command to unload a DLKM
module configured as dynamically loadable. You have the choice of
unloading the module by its name or its ID number.
The unloading operation logically disconnects the module from the
running kernel and calls the module’s _unload() entry point to perform
any module-specific cleanup including:
1. canceling all outstanding calls to timeout()
2. disabling device interrupts
3. freeing all active memory allocated to the specified loadable module
Step 1. To unload a dynamically configured loadable module by name, execute
this kmadmin command:
/usr/sbin/kmadmin -U module_name