Managing and Developing Dynamically Loadable Kernel Modules

Managing and Developing Dynamically Loadable Kernel Modules
Managing Dynamically Loadable Kernel Modules
Chapter 12 519
Preparing a Loadable Module for Static Linking
You can use the kmsystem command to prepare a DLKM module for
configuration as statically configured.
Use the kmsystem command to set the planned configuration of a
module.
To prepare a DLKM module for static linking to the HP-UX kernel,
execute this kmsystem command:
/usr/sbin/kmsystem -c y -l n
module_name
NOTE A module’s system description file, as well as the HP-UX system file,
must only be modified using the kmsystem or kmtune commands. It is
important to follow this practice because the format of planned
attributes and their location in the system will change in future releases
and if you manually modify the system files as they are currently
designed, your modifications will not be forward compatible.
Querying and Tuning System Parameters for a Statically Configured
Module Present in the Static Kernel
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 traditionally packaged module (one that uses pre-11.0 module
packaging), kmtune writes any user modified system parameter to the
HP-UX system file.
To query the value of a specific system parameter:
Step 1. 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: