Managing and Developing Dynamically Loadable Kernel Modules

Managing and Developing Dynamically Loadable Kernel Modules
Managing Dynamically Loadable Kernel Modules
Chapter 12 513
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 any modularly packaged module, kmtune writes user modified
system parameters to the module’s system description 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 in
the following sections).
NOTE The dynamic tuning of tunable system parameters without reconfiguring
the DLKM module is not supported in HP-UX 11i Version 1.5 but will be
supported in a future release.
Configuring a Loadable Module for Dynamic Loading
Use the config command to configure a loadable module (a DLKM
module) into the system as a dynamically configured module. For a
DLKM module configuration, config proceeds as follows:
1. Reads the module’s master configuration file
2. Reads the HP-UX system file
3. Reads the module’s system description file
4. Checks the interface functions or symbols used by the module