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 307
How To Prepare a
Loadable Module
for Dynamic
Linking
To prepare a loadable module to be dynamically loaded into the kernel,
do the following:
Step 1. Execute this kmsystem command:
/usr/sbin/kmsystem -c Y -l Y
module_name
How to query and
tune the system
parameters
supplied by a
loadable module
Use the kmtune command to query, set, or reset system (tunable)
parameters used by the DLKM module or the static kernel. kmtune reads
the master configuration files, the system description files, and the
HP-UX system file.
For a Modularly packaged Module, kmtune writes any user-modified
system parameter to the module’s system description file. For a
Traditionally packaged module using pre-11.0 module packaging,
kmtune writes any user-modified system parameter to the HP-UX system
file.
Step 1. To query the value of a specific system parameter, execute this kmtune
command:
/usr/sbin/kmtune -q
system_parameter_name
Step 2. To set the value of a specific system parameter, execute this kmtune
command:
/usr/sbin/kmtune -s
system_parameter_name=value
Step 3. To reset the value of a system parameter to its default value, execute this
kmtune command:
/usr/sbin/kmtune -r
system_parameter_name
At this point, you have set the values of the module’s system parameters
for the next module configuration. The values of the system parameters
supplied by the module will become effective with the running kernel
after the loadable module is configured and registered (see procedures on
following page).
How to configure a
loadable module
for dynamic
loading
Upon completing the configuration procedure shown here, the
dynamically configured loadable module will be ready to load
immediately, meaning that you do not have to wait for a reboot to be able
to load it.