HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

k
kmadmin(1M) kmadmin(1M)
-D Reset the kernel modules search path to its default value. The default value can be one of two
search paths depending upon the running kernel. When the running kernel is
/stand/vmunix , the default value is /stand/dlkm/mod.d
. When the running kernel is
/stand/current.vmunix
, the default value is
/stand/dlkm. current.vmunix /mod.d
.
The reset takes effect immediately and affects all subsequent loads (demand and auto-load) and
all users on the system.
-k Print a list of all statically configured modules.
-L module_name
Load the named module(s), using the current value of the search path to locate the module’s
object file on disk.
This option searches for a matching file in all directories specified in the search path. The
default search pathname can be one of two values. The pathname is
/stand/dlkm. current.vmunix
/mod.d when the running kernel is /stand/current.vmunix
or pathname is
/stand/dlkm/mod.d
when the running kernel is
/stand/vmunix.
The load operation performs all tasks associated with link editing the module to the kernel and
making the module accessible to the system. If the module depends on other kernel modules (as
defined in
/usr/conf/master.d
), and these modules are not currently loaded, kmadmin
will automatically load the dependent modules during the load operation.
When loading completes, an integer module_id prints on the standard output to identify the
module(s) that was loaded.
-L pathname
Same as -L module_name, except the absolute pathname, pathname, is used to locate the ker-
nel module’s object file.
-U module_name
Unload the named module(s) module_name.
The unload operation performs all tasks associated with disconnecting the module from the ker-
nel and releasing any memory acquired by the module. When unloading completes, a message is
displayed to standard output notify the user that the module(s) that has been unloaded.
If the module(s) to be unloaded are currently in use, are dependents of a loadable module that is
currently loaded, or are currently being loaded or unloaded, the unload request will fail.
-u module_id
Same as -U module_name, except that module(s) to be unloaded is identified by the integer
value module_id.Ifmodule_id is 0 (zero), kmadmin attempts to unload all loaded modules.
-q module_id
Print the status of loaded or registered module(s) identified by the integer value module_id.
Information returned by this option includes:
module name
module identifier (module_id)
the modules pathname
module status
module size
the module’s virtual load address
the memory size of BSS
the base address of BSS
the module’s reference count
the module’s dependent count
the module’s unload delay value
the module’s descriptive name
the type of module
HP-UX 11i Version 1: September 2005 2 Hewlett-Packard Company Section 1M399