HP-UX HB v13.00 Ch-07 - Kernel Configuration

HP-UX Handbook Rev 13.00 Page 11 (of 33)
Chapter 07 Kernel Configuration
October 29, 2013
kmadmin activates the module, i.e. it loads it into the running kernel.
# kmadmin -L krm
kmadmin: Module krm loaded, ID = 1
kmadmin is also useful to check whether the module has been loaded successfully:
# kmadmin -Q krm
Module Name krm
Module ID 1
Module Path /stand/dlkm/mod.d/krm
Status LOADED
Size 8192
Base Address 0x429c000
BSS Size 0
BSS Base Address 0x0
Hold Count 1
Dependent Count 0
Unload Delay 0 seconds
Description krm
Type WSIO
Block Major -1
Character Major 240
Flags a5
The command
kminstall -d krm
removes the module again, i.e. the status is like before kminstall -a was executed.
Overview of the DLKM commands
The “km” commands can be found in the directory /usr/sbin
kminstall(1M)
Add/remove/update a kernel module. kminstall(1M) adds or removes the module’s
subsystem code, master and system file.
Removing the krm module:
# kminstall -d krm
# kmsystem -q krm
kmsystem: Invalid module, subsystem or driver name : krm
# cat /stand/system.d/krm
cat: Cannot open /stand/system.d/krm: No such file or directory
Adding the krm module again:
# kminstall -a krm
kminstall: Local directory must contain a mod.o file
# cd /etc/opt/resmon/lib/krm
# kminstall -a krm