|
|
HP-UX Reference Volume 2 of 5 > kkmmodreg(1M) |
|
NAMEkmmodreg — register or unregister loadable kernel modules with the running kernel SYNOPSIS/usr/sbin/kmmodreg [[-M module_name]...] [-r mod_register_root] [-c mod_reg_root] /usr/sbin/kmmodreg [[-U module_name]...] [-r mod_register_root] [-c mod_reg_root] DESCRIPTIONkmmodreg registers all of the loadable kernel modules listed in the mod_register file located under either /stand/dlkm.current_vmunix/ when the running kernel is current_vmunix, or /stand/dlkm when the running kernel is /stand/vmunix. All loadable kernel modules need to be registered by kmmodreg before they can be automatically-loaded by the running kernel (i.e., upon module access by an application or user process), or demand-loaded by an administrator issuing the kmadmin command. The mod_register file is generated whenever config is run to create a new kernel and contains the registration information for any (and all) configured loadable modules. When config -M is run to configure a loadable kernel module, the entries for the module are appended to the mod_register. The mod_register file is not expected to be edited manually. An individual module's registration information is also created by config and stored in the mod_reg file located under /stand/dlkm/mod_bld.d directory. Optionskmmodreg takes the following options:
NOTESThe kmmodreg command is executed automatically at every system reboot. kmupdate also calls kmmodreg, with the -M option, when a loadable kernel module configuration is requested. kmmodreg can also be invoked as a user-level command to register all of the loadable kernel modules. FILES
Each mod_register file entry provides registration information about a single module. The information is contained in a single-line entry. All fields are positional and are separated by colons. The subfields are separated by commas. The entry is of the form: module-name:module-type:type-specific-data
where:
RETURN VALUEAn exit value of zero indicates successful completion of the command. If errors occur, kmmodreg reports error messages for each error and exits with the return value 1. If the error is a failure to register a module, an error message is reported, but the command continues processing the remaining modules listed in the mod_register file. If no modules are processed, kmmodreg returns a value of 2. |
|